Request Parameters:


Add the products review to product


URL : ../Api/Client/ProductReviews


Header:

Content-Type:application/json



Required Parameters :  ProductId


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

       "ProductId": "",

       "LanguageId":""

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

       "ProductId": "200",

       "LanguageId":"1"

}
Response :
{

    "Status": 0,

    "Message": "No product found with id : 200",

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Sucess Response :
Parameter:
{    

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

       "StoreId": "1",

       "ProductId": "1",

       "LanguageId":"1"

}
Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "ProductId": 1,

        "ProductName": "Build your own computer",

        "ProductSeName": "build-your-own-computer",

        "Items": [

            {

                "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",

                "CustomerId": 0,

                "CustomerName": "John",

                "AllowViewingProfiles": false,

                "Title": "Some sample review",

                "ReviewText": "This sample review is for the Build your own computer. I've been waiting for this product to be available. It is priced just right.",

                "ReplyText": null,

                "Rating": 5,

                "WrittenOnStr": "7/28/2018 10:04 AM",

                "Helpfulness": {

                    "ProductReviewId": 28,

                    "HelpfulYesTotal": 0,

                    "HelpfulNoTotal": 0,

                    "Form": null,

                    "CustomProperties": {}

                },

                "AdditionalProductReviewList": [],

                "Id": 28,

                "Form": null,

                "CustomProperties": {}

            },

            {

                "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",

                "CustomerId": 0,

                "CustomerName": "John",

                "AllowViewingProfiles": false,

                "Title": "Performance and Resolution",

                "ReviewText": "Performance is high and resolution is more than expectation.Webcam is working fine.",

                "ReplyText": null,

                "Rating": 3,

                "WrittenOnStr": "10/25/2018 1:39 PM",

                "Helpfulness": {

                    "ProductReviewId": 31,

                    "HelpfulYesTotal": 0,

                    "HelpfulNoTotal": 0,

                    "Form": null,

                    "CustomProperties": {}

                },

                "AdditionalProductReviewList": [],

                "Id": 31,

                "Form": null,

                "CustomProperties": {}

            }

        ],

        "AddProductReview": null,

        "CustomerGuid": "496dbb2a-f9eb-4522-a804-b108693b69ce",

        "Message": null

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}