Product Details
Request Parameters:
User can see product detail
URL: ../Api/Client/ProductDetail
Header:
Content-Type:application/json
Required Parameters : PorductId
[Note: Additionally added ProductType parameter in response for this method and other related product methods.]
- If you are a guest customer pass "CustomerGUID":"00000000-0000-0000-0000-000000000000" ,then in response you will get your Guest CustomerGUId
- For Edit product from Cart, pass cart item id in UpdateCartItemId parameter. This will load selected attributes in product detail page.
- If product has a control type Image Squares then product in attribute value list PictureUrl represent Image square picture and FullSizePictureUrl represent default selected picture for the attribute value.
- UpdateCartItemId This Id either of shopping cart or wish list item id. Pass this id to get product details with preselected attribute of shopping cart and wish list.
Case-1. Exception parameters :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"F1F13527-BA8E-4C5A-ACA2-9EC3D78B3FF4",
"StoreId":"",
"LanguageId":"",
"CurrencyId":"",
"ProductId":"",
"UpdateCartItemId":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",
"ProductId":"500",
"UpdateCartItemId":0
}
Response :
{
"Status": 0,
"Message": "No product found with id : 500",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}
Case-3. Success Response :
Parameter:
{
"ApiSecretKey":"i99b98d117m116a112o98k115c111",
"CustomerGUID":"496DBB2A-F9EB-4522-A804-B108693B69CE",
"StoreId":"1",
"LanguageId":"1",
"CurrencyId":"1",
"ProductId":"1",
"UpdateCartItemId":0
}
Response :
{
"Status": 1,
"Message": "Success",
"Data": {
"Id": 1,
"ProductType": "SimpleProduct",
"DefaultPictureZoomEnabled": false,
"DefaultPictureModel": {
"ImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000020_build-your-own-computer_550.jpeg",
"ThumbImageUrl": null,
"FullSizeImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000020_build-your-own-computer.jpeg",
"Title": "Picture of Build your own computer",
"AlternateText": "Picture of Build your own computer",
"CustomProperties": {}
},
"PictureModels": [
{
"ImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000020_build-your-own-computer_100.jpeg",
"ThumbImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000020_build-your-own-computer_100.jpeg",
"FullSizeImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000020_build-your-own-computer.jpeg",
"Title": "Picture of Build your own computer",
"AlternateText": "Picture of Build your own computer",
"CustomProperties": {}
},
{
"ImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000021_build-your-own-computer_100.jpeg",
"ThumbImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000021_build-your-own-computer_100.jpeg",
"FullSizeImageUrl": "http://mobileapi420.rebuildsucceeded.com/images/thumbs/0000021_build-your-own-computer.jpeg",
"Title": "Picture of Build your own computer",
"AlternateText": "Picture of Build your own computer",
"CustomProperties": {}
}
],
"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>",
"ProductTemplateViewPath": "ProductTemplate.Simple",
"MetaKeywords": null,
"MetaDescription": "Build it",
"MetaTitle": null,
"SeName": "build-your-own-computer",
"ShowSku": true,
"Sku": "COMP_CUST",
"ShowManufacturerPartNumber": false,
"ManufacturerPartNumber": null,
"ShowGtin": false,
"Gtin": null,
"ShowVendor": false,
"VendorModel": null,
"HasSampleDownload": false,
"GiftCard": {
"IsGiftCard": false,
"RecipientName": null,
"RecipientEmail": null,
"SenderName": null,
"SenderEmail": null,
"Message": null,
"GiftCardType": 0,
"CustomProperties": {}
},
"IsShipEnabled": true,
"IsFreeShipping": true,
"FreeShippingNotificationEnabled": true,
"DeliveryDate": null,
"IsRental": false,
"RentalStartDate": null,
"RentalEndDate": null,
"StockAvailability": "In stock",
"DisplayBackInStockSubscription": false,
"BackInStockSubscribeResponseModel": {
"PopupTitle": "Notify me when available",
"AlreadySubscribed": false,
"SubscriptionAllowed": false,
"BackInStockMessage": "Receive an email when this arrives in stock",
"BackInStockDescription": "Subscriptions are not allowed for this product"
},
"EmailAFriendEnabled": true,
"CompareProductsEnabled": true,
"PageShareCode": "<!-- AddThis Button BEGIN --><div class=\"addthis_toolbox addthis_default_style \"><a class=\"addthis_button_preferred_1\"></a><a class=\"addthis_button_preferred_2\"></a><a class=\"addthis_button_preferred_3\"></a><a class=\"addthis_button_preferred_4\"></a><a class=\"addthis_button_compact\"></a><a class=\"addthis_counter addthis_bubble_style\"></a></div><script src=\"http://s7.addthis.com/js/250/addthis_widget.js#pubid=nopsolutions\"></script><!-- AddThis Button END -->",
"ProductPrice": {
"CurrencyCode": "USD",
"OldPrice": null,
"Price": "$1,200.00",
"PriceWithDiscount": null,
"PriceValue": 1200,
"PriceWithDiscountValue": 1200,
"CustomerEntersPrice": false,
"CallForPrice": false,
"ProductId": 1,
"HidePrices": false,
"IsRental": false,
"RentalPrice": null,
"DisplayTaxShippingInfo": false,
"CustomProperties": {}
},
"AddToCart": {
"ProductId": 1,
"EnteredQuantity": 1,
"CustomerEntersPrice": false,
"CustomerEnteredPrice": 0,
"CustomerEnteredPriceRange": null,
"DisableBuyButton": false,
"DisableWishlistButton": false,
"AllowedQuantities": [],
"IsRental": false,
"AvailableForPreOrder": false,
"PreOrderAvailabilityStartDateTimeUtc": null,
"UpdatedShoppingCartItemId": 0,
"MinimumQuantityNotification": null,
"CustomProperties": {}
},
"Breadcrumb": {
"Enabled": true,
"ProductId": 1,
"ProductName": "Build your own computer",
"ProductSeName": "build-your-own-computer",
"CategoryBreadcrumb": [
{
"Name": "Computers",
"SeName": "computers",
"NumberOfProducts": null,
"IncludeInTopMenu": false,
"SubCategories": [],
"HaveSubCategories": false,
"Route": null,
"Id": 1,
"CustomProperties": {}
},
{
"Name": "Desktops",
"SeName": "desktops",
"NumberOfProducts": null,
"IncludeInTopMenu": false,
"SubCategories": [],
"HaveSubCategories": false,
"Route": null,
"Id": 2,
"CustomProperties": {}
}
],
"CustomProperties": {}
},
"ProductTags": [
{
"Name": "awesome",
"SeName": "awesome",
"ProductCount": 17,
"Id": 1,
"CustomProperties": {}
},
{
"Name": "computer",
"SeName": "computer",
"ProductCount": 14,
"Id": 2,
"CustomProperties": {}
}
],
"ProductAttributes": [
{
"ProductId": 1,
"ProductAttributeId": 6,
"Name": "Processor",
"Description": null,
"TextPrompt": null,
"IsRequired": true,
"DefaultValue": null,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "DropdownList",
"Values": [
{
"ProductAttributeMappingId": 1,
"Name": "2.2 GHz Intel Pentium Dual-Core E2200",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 1,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 1,
"Name": "2.5 GHz Intel Pentium Dual-Core E2200",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$15.00",
"PriceAdjustmentValue": 15,
"IsPreSelected": true,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 2,
"CustomProperties": {}
}
],
"HasCondition": false,
"Id": 1,
"CustomProperties": {}
},
{
"ProductId": 1,
"ProductAttributeId": 7,
"Name": "RAM",
"Description": null,
"TextPrompt": null,
"IsRequired": true,
"DefaultValue": null,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "DropdownList",
"Values": [
{
"ProductAttributeMappingId": 2,
"Name": "2 GB",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 3,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 2,
"Name": "4GB",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$20.00",
"PriceAdjustmentValue": 20,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 4,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 2,
"Name": "8GB",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$60.00",
"PriceAdjustmentValue": 60,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 5,
"CustomProperties": {}
}
],
"HasCondition": false,
"Id": 2,
"CustomProperties": {}
},
{
"ProductId": 1,
"ProductAttributeId": 4,
"Name": "HDD",
"Description": null,
"TextPrompt": null,
"IsRequired": true,
"DefaultValue": null,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "RadioList",
"Values": [
{
"ProductAttributeMappingId": 3,
"Name": "320 GB",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 6,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 3,
"Name": "400 GB",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$100.00",
"PriceAdjustmentValue": 100,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 7,
"CustomProperties": {}
}
],
"HasCondition": false,
"Id": 3,
"CustomProperties": {}
},
{
"ProductId": 1,
"ProductAttributeId": 5,
"Name": "OS",
"Description": null,
"TextPrompt": null,
"IsRequired": true,
"DefaultValue": null,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "RadioList",
"Values": [
{
"ProductAttributeMappingId": 4,
"Name": "Vista Home",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$50.00",
"PriceAdjustmentValue": 50,
"IsPreSelected": true,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 8,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 4,
"Name": "Vista Premium",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$60.00",
"PriceAdjustmentValue": 60,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 9,
"CustomProperties": {}
}
],
"HasCondition": false,
"Id": 4,
"CustomProperties": {}
},
{
"ProductId": 1,
"ProductAttributeId": 9,
"Name": "Software",
"Description": null,
"TextPrompt": null,
"IsRequired": false,
"DefaultValue": null,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "Checkboxes",
"Values": [
{
"ProductAttributeMappingId": 5,
"Name": "Microsoft Office",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$50.00",
"PriceAdjustmentValue": 50,
"IsPreSelected": true,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 10,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 5,
"Name": "Acrobat Reader",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$10.00",
"PriceAdjustmentValue": 10,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 11,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 5,
"Name": "Total Commander",
"ColorSquaresRgb": null,
"PriceAdjustment": "+$5.00",
"PriceAdjustmentValue": 5,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 12,
"CustomProperties": {}
}
],
"HasCondition": false,
"Id": 5,
"CustomProperties": {}
}
],
"ProductSpecifications": [],
"ProductManufacturers": [],
"ProductReviewOverview": {
"ProductId": 1,
"RatingSum": 45,
"TotalReviews": 13,
"AllowCustomerReviews": true,
"CustomProperties": {}
},
"TierPrices": null,
"AssociatedProducts": null,
"DisplayDiscontinuedMessage": false,
"CurrentStoreName": "Your store name",
"CustomerGuid": "6c6b37a8-e3f1-48e4-b0c6-45c3d5001dca",
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}