Get product reviews

The method retrieves all the reviews that you have received on your product by passing product ID. The response includes organization information along with the details of review and reviewer. Paginating the results is possible with results per page option. Reviews can also be filtered based on the Rating greater than, Rating less than, Reviews after date and Reviews before date.

HTTP method: GET
Authentication: Public_key::Private_key
URL: https://api.trustytribe.com/product/{productId}/review

Curl Request :


curl -X GET --header 'Accept: application/json' --header 'Authorization: Public_key::Private_key' 'https://api.trustytribe.com/product/{productId}/review'
            
<> Parameters
productId | Required String

The id of the product whose reviews are to be fetched.

Example: https://api.trustytribe.com/review/123?productId=456


page | Optional Integer

The page to retrieve. If the page number requested is higher than the available number of pages an empty array will be returned.

Example: ?page=2


perPage | Optional Integer

The number of results to be retrieved per page.

DefaultValue: 10

Example: ?perPage=3


startReview | Optional Double

To retrieve reviews of the product whose ratings are greater than or equal to the number passed.

Constraints: The allowed range is minimum: 1.0, maximum: 5.0

Example: ?startReview=2


endReview | Optional Double

To retrieve reviews of the product whose ratings are less than or equal to the number passed.

Constraints: The allowed range is minimum: 1.0, maximum: 5.0

Example: ?endReview=4.5


reviews_after | Optional String

To retrieve reviews created after the mentioned date.

Constraints: The string should be timestamp in miliseconds

Example: ?reviews_after=1519731239


reviews_before | Optional String

To retrieve reviews created before the mentioned date.

Constraints: The string should be timestamp in miliseconds

Example: ?reviews_before=1519731239


Response
{
  "meta": {
    "count": 1,
    "pageCount": 1,
    "totalCount": 1,
    "next": null,
    "previous": null,
    "self": "https://api.trustytribe.com/product/30/review?page=1&perPage=10",
    "first": "https://api.trustytribe.com/product/30/review?page=1&perPage=10",
    "last": "https://api.trustytribe.com/product/30/review?page=1&perPage=10"
  },
  "results": [
    {
      "organization": {
        "zip": "NE17",
        "country": "GB",
        "website": "https://example.com",
        "unique_id": "ee8e35f7-78fd-g789-8992-f92eccd47634",
        "paid_status": "PAID",
        "address": "",
        "description": "",
        "domains": "[https://www.example.com, https://example.com, https://beta.example.com, http://web.example.com]",
        "title": "Eventerprise AG",
        "sandbox_public_key": "sandbox_pub_266219b266349eb6c17a6",
        "updated_at": 1515057668459,
        "live_public_key": "live_pub_eyJ1aWQiOjIsInBlcm1pc3Npn93dIjpbIlRydXN0eVdlYkFwcENsaWVudCJdLCJpYXQiOjE1MDk0MzAzMDd9",
        "sandbox_private_key": "sandbox_pri_41fa0b39afy4w7e5207f",
        "live_private_key": "live_pri_vZ2DQCK_3t3KiDEWst9TagYQp44QNWGs0IKXm_DcTLg",
        "photo_url": "",
        "customer_id": "cus_C4eCOL09tlb6Ko",
        "plan": "lite",
        "email": "[email protected]",
        "slug": "example.com",
        "id": 666
      },
      "review": {
        "updated_at": 1427947200000,
        "rating": 4,
        "description": "I am extremely satisfied with the service received from TENTS 4 EVENTS. Both Lucy and Jason were professional in their interactions with me. The quality of advise and suggestions to enhance the product to my benefit were very much appreciated. The job was completed timeously and to a high standard. I wish to recommend them to any other prospective customers. Thanks Lucy and Jason.",
        "created_at": 1427947200000,
        "title": "Tents For Events",
        "status": "APPROVED",
        "id": 935
      },
      "userWroteReview": {
        "start": 196,
        "end": 935,
        "type": "WROTE",
        "properties": {
          "user_email": "[email protected]",
          "user_type": "NORMAL_USER",
          "updated_at": 1427947200000,
          "created_at": 1427947200000
        },
        "id": 1112
      },
      "user": {
        "emails": [
          "[email protected]"
        ],
        "website": "",
        "activation_code": "aa6848a30466d4acf40b",
        "organization": "",
        "name": "ABC XYZ",
        "created_at": 1502173804892,
        "domains": [],
        "primary_email": "[email protected]",
        "photo_url": [
          ""
        ],
        "status": "PENDING",
        "id": 196
      },
      "reviewRank": 1
    }
  ]
}