Request Parameters:


Add the products review to product


URL : ../Api/Client/AddProductReview


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

      "ProductId": "",

      "CaptchaValid": "true",

      "ProductReviewRequest":

      {

           "Title": "",

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

           "Rating": "",

           "DisplayCaptcha": "true",

           "CanCurrentCustomerLeaveReview": "true",

           "SuccessfullyAdded": "false",

           "Result": "Abc"

      }

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

      "CaptchaValid": "true",

      "ProductReviewRequest":

      {

           "Title": "Performance and Resolution",

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

           "Rating": "3",

           "DisplayCaptcha": "true",

           "CanCurrentCustomerLeaveReview": "true",

           "SuccessfullyAdded": "false",

           "Result": "Abc"

      }

}
Response :
{

    "Status": 0,

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

    "Data": null,

    "ValidationMessage": [],

    "ErrorMessage": null

}


Case-3. Success Response :
Parameter:
{    

      "ApiSecretKey":"i99b98d117m116a112o98k115c111",

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

         "StoreId": "1",

      "ProductId": "1",

      "CaptchaValid": "true",

      "ProductReviewRequest":

      {

           "Title": "Performance and Resolution",

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

           "Rating": "3",

           "DisplayCaptcha": "true",

           "CanCurrentCustomerLeaveReview": "true",

           "SuccessfullyAdded": "false",

           "Result": "Abc"

      }

}
Response :
{

    "Status": 1,

    "Message": "Success.",

    "Data": {

        "CustomerName": "John Smith",

        "ProductId": 1,

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

        "Message": "Product review is successfully added.",

        "Id": 31,

        "ProductReview": {

            "Title": "Performance and Resolution",

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

            "Rating": 3,

            "DisplayCaptcha": true,

            "CanCurrentCustomerLeaveReview": true,

            "SuccessfullyAdded": true,

            "Result": "Product review is successfully added."

        }

    },

    "ValidationMessage": [],

    "ErrorMessage": null

}