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

        "PictureModels": null,

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

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

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

        "AddToCart": null,

        "Breadcrumb": null,

        "ProductTags": [

            {

                "Name": "awesome",

                "SeName": "awesome",

                "ProductCount": 17,

                "Id": 1,

                "CustomProperties": {}

            },

            {

                "Name": "computer",

                "SeName": "computer",

                "ProductCount": 14,

                "Id": 2,

                "CustomProperties": {}

            }

        ],

        "ProductAttributes": [],

        "ProductSpecifications": null,

        "ProductManufacturers": null,

        "ProductReviewOverview": null,

        "TierPrices": null,

        "AssociatedProducts": null,

        "DisplayDiscontinuedMessage": false,

        "CurrentStoreName": "Your store name",

        "CustomerGuid": "6c6b37a8-e3f1-48e4-b0c6-45c3d5001dca",

        "Message": null

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}