Get Product By VendorId
Request Parameters:
Retrieve the list of product by category.
URL: ../Api/Client/GetProductByVendorId
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": "1",
"LanguageId": "1",
"CurrencyId": "",
"CategoryId":"",
"VendorId":"1",
"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":"60",
"VendorId":"1",
"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",
"LanguageId": "1",
"CurrencyId": "1",
"CategoryId":"2",
"VendorId":"1",
"CatalogPagingResponse":
{
"PageSize": "8",
"PageNumber": "1",
"OrderBy": "0"
}
}
Response :
{
"Status": 1,
"Message": "Success.",
"Data": {
"Categories": null,
"Topics": null,
"BlogEnabled": false,
"RecentlyAddedProductsEnabled": false,
"ForumEnabled": false,
"Name": "Desktops",
"Description": null,
"MetaKeywords": null,
"MetaDescription": null,
"MetaTitle": null,
"SeName": "desktops",
"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": [],
"AllowCustomersToSelectPageSize": false,
"PageSizeOptions": [],
"OrderBy": 0,
"ViewMode": null,
"WarningMessage": null,
"NoResultMessage": null,
"FirstItem": 1,
"HasNextPage": false,
"HasPreviousPage": false,
"LastItem": 1,
"PageIndex": 0,
"PageNumber": 1,
"PageSize": 6,
"TotalItems": 1,
"TotalPages": 1
},
"FeaturedProducts": [],
"Products": [
{
"Id": 1,
"ProductType": "SimpleProduct",
"Name": "Build your own computer",
"ShortDescription": "Build it",
"FullDescription": "<p>Fight back against cluttered workspaces with the stylish IBM zBC12 All-in-One desktop PC, featuring powerful computing resources and a stunning 20.1-inch widescreen display with stunning XBRITE-HiColor LCD technology. The black IBM zBC12 has a built-in microphone and MOTION EYE camera with face-tracking technology that allows for easy communication with friends and family. And it has a built-in DVD burner and Sony's Movie Store software so you can create a digital entertainment library for personal viewing at your convenience. Easy to setup and even easier to use, this JS-series All-in-One includes an elegantly designed keyboard and a USB mouse.</p>",
"SeName": "build-your-own-computer",
"ProductPrice": {
"OldPrice": null,
"Price": "$1,200.00",
"DisableBuyButton": false,
"DisableWishlistButton": false,
"AvailableForPreOrder": false,
"PreOrderAvailabilityStartDateTimeUtc": null,
"IsRental": false,
"ForceRedirectionAfterAddingToCart": false,
"DisplayTaxShippingInfo": false,
"CustomProperties": {}
},
"DefaultPictureModel": {
"ImageUrl": "https://localhost:44369/images/thumbs/0000020_build-your-own-computer_415.jpeg",
"ThumbImageUrl": null,
"FullSizeImageUrl": "https://localhost:44369/images/thumbs/0000020_build-your-own-computer.jpeg",
"Title": "Show details for Build your own computer",
"AlternateText": "Picture of Build your own computer",
"CustomProperties": {}
},
"ReviewOverviewModel": {
"ProductId": 1,
"RatingSum": 5,
"TotalReviews": 1,
"AllowCustomerReviews": true,
"CanAddNewReview": false,
"CustomProperties": {}
},
"CustomerGuid": "3dd4e964-5a98-4482-97c9-3f4f89dfd7c4",
"Message": null
}
],
"SpecificationFilter": {
"Enabled": true,
"Attributes": [
{
"Name": "CPU Type",
"Values": [
{
"Name": "Intel Core i5",
"ColorSquaresRgb": null,
"Selected": false,
"Id": 6,
"CustomProperties": {}
}
],
"Id": 2,
"CustomProperties": {}
},
{
"Name": "Memory",
"Values": [
{
"Name": "4 GB",
"ColorSquaresRgb": null,
"Selected": false,
"Id": 8,
"CustomProperties": {}
}
],
"Id": 3,
"CustomProperties": {}
},
{
"Name": "Hard drive",
"Values": [
{
"Name": "500 GB",
"ColorSquaresRgb": null,
"Selected": false,
"Id": 12,
"CustomProperties": {}
}
],
"Id": 4,
"CustomProperties": {}
}
],
"CustomProperties": {}
},
"PriceRangeFilter": {
"Enabled": true,
"SelectedPriceRange": {
"From": 0,
"To": 10000,
"CustomProperties": {}
},
"AvailablePriceRange": {
"From": 0,
"To": 10000,
"CustomProperties": {}
},
"CustomProperties": {}
},
"ManufacturerFilter": {
"Enabled": true,
"Manufacturers": [
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Apple",
"Value": "1"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "HP",
"Value": "2"
},
{
"Disabled": false,
"Group": null,
"Selected": false,
"Text": "Nike",
"Value": "3"
}
],
"CustomProperties": {}
},
"CustomerGuid": "3dd4e964-5a98-4482-97c9-3f4f89dfd7c4",
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}