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": 31,
"ProductType": "SimpleProduct",
"DefaultPictureZoomEnabled": false,
"DefaultPictureModel": {
"ImageUrl": "http://localhost:15536/images/thumbs/0000062_obey-propaganda-hat_550.jpg",
"ThumbImageUrl": null,
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000062_obey-propaganda-hat.jpg",
"Title": "Picture of Obey Propaganda Hat",
"AlternateText": "Picture of Obey Propaganda Hat",
"Form": null,
"CustomProperties": {}
},
"PictureModels": [
{
"ImageUrl": "http://localhost:15536/images/thumbs/0000062_obey-propaganda-hat_100.jpg",
"ThumbImageUrl": "http://localhost:15536/images/thumbs/0000062_obey-propaganda-hat_100.jpg",
"FullSizeImageUrl": "http://localhost:15536/images/thumbs/0000062_obey-propaganda-hat.jpg",
"Title": "Picture of Obey Propaganda Hat",
"AlternateText": "Picture of Obey Propaganda Hat",
"Form": null,
"CustomProperties": {}
}
],
"Name": "Obey Propaganda Hat",
"ShortDescription": null,
"FullDescription": "<p>Printed poplin 5 panel camp hat with debossed leather patch and web closure</p>",
"ProductTemplateViewPath": "ProductTemplate.Simple",
"MetaKeywords": null,
"MetaDescription": null,
"MetaTitle": null,
"SeName": "obey-propaganda-hat",
"ShowSku": true,
"Sku": "OB_HAT_PR",
"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,
"Form": null,
"CustomProperties": {}
},
"IsShipEnabled": true,
"IsFreeShipping": false,
"FreeShippingNotificationEnabled": true,
"DeliveryDate": null,
"IsRental": false,
"RentalStartDate": null,
"RentalEndDate": null,
"StockAvailability": "Out of stock",
"DisplayBackInStockSubscription": true,
"BackInStockSubscribeResponseModel": {
"PopupTitle": "Notify me when available",
"AlreadySubscribed": false,
"SubscriptionAllowed": true,
"BackInStockMessage": "Receive an email when this arrives in stock",
"BackInStockDescription": "You'll receive a onetime e-mail when this product is available for ordering again. We will not send you any other e-mails or add you to our newsletter; you will only be e-mailed about 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": "$30.00",
"PriceWithDiscount": null,
"PriceValue": 30,
"PriceWithDiscountValue": 30,
"CustomerEntersPrice": false,
"CallForPrice": false,
"ProductId": 31,
"HidePrices": false,
"IsRental": false,
"RentalPrice": null,
"DisplayTaxShippingInfo": false,
"Form": null,
"CustomProperties": {}
},
"AddToCart": {
"ProductId": 31,
"EnteredQuantity": 1,
"CustomerEntersPrice": false,
"CustomerEnteredPrice": 0,
"CustomerEnteredPriceRange": null,
"DisableBuyButton": false,
"DisableWishlistButton": false,
"AllowedQuantities": [],
"IsRental": false,
"AvailableForPreOrder": false,
"PreOrderAvailabilityStartDateTimeUtc": null,
"UpdatedShoppingCartItemId": 0,
"MinimumQuantityNotification": null,
"Form": null,
"CustomProperties": {}
},
"Breadcrumb": {
"Enabled": true,
"ProductId": 31,
"ProductName": "Obey Propaganda Hat",
"ProductSeName": "obey-propaganda-hat",
"CategoryBreadcrumb": [
{
"Name": "Apparel",
"SeName": "apparel",
"NumberOfProducts": null,
"IncludeInTopMenu": false,
"SubCategories": [],
"Id": 9,
"Form": null,
"CustomProperties": {}
},
{
"Name": "Accessories",
"SeName": "accessories",
"NumberOfProducts": null,
"IncludeInTopMenu": false,
"SubCategories": [],
"Id": 12,
"Form": null,
"CustomProperties": {}
}
],
"Form": null,
"CustomProperties": {}
},
"ProductTags": [
{
"Name": "cool",
"SeName": "cool",
"ProductCount": 17,
"Id": 3,
"Form": null,
"CustomProperties": {}
},
{
"Name": "apparel",
"SeName": "apparel-2",
"ProductCount": 9,
"Id": 10,
"Form": null,
"CustomProperties": {}
}
],
"ProductAttributes": [
{
"ProductId": 31,
"ProductAttributeId": 8,
"Name": "Size",
"Description": null,
"TextPrompt": null,
"IsRequired": true,
"DefaultValue": null,
"SelectedDay": null,
"SelectedMonth": null,
"SelectedYear": null,
"AllowedFileExtensions": null,
"AttributeControlType": "DropdownList",
"Values": [
{
"ProductAttributeMappingId": 13,
"Name": "Small",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 34,
"Form": null,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 13,
"Name": "Medium",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 35,
"Form": null,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 13,
"Name": "Large",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 36,
"Form": null,
"CustomProperties": {}
},
{
"ProductAttributeMappingId": 13,
"Name": "X-Large",
"ColorSquaresRgb": null,
"PriceAdjustment": null,
"PriceAdjustmentValue": 0,
"IsPreSelected": false,
"PictureId": 0,
"PictureUrl": null,
"FullSizePictureUrl": null,
"Id": 37,
"Form": null,
"CustomProperties": {}
}
],
"HasCondition": false,
"Id": 13,
"Form": null,
"CustomProperties": {}
}
],
"ProductSpecifications": [],
"ProductManufacturers": [],
"ProductReviewOverview": {
"ProductId": 31,
"RatingSum": 0,
"TotalReviews": 0,
"AllowCustomerReviews": true,
"Form": null,
"CustomProperties": {}
},
"TierPrices": null,
"AssociatedProducts": null,
"DisplayDiscontinuedMessage": false,
"CurrentStoreName": "Your store name",
"CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",
"Message": null
},
"ValidationMessage": [],
"ErrorMessage": null
}