Rating Details of Products

DESCRIPTION

Rating details of a product may be reached with given requests. Response of the request includes average rating, total rating count, total comment count (without details of comments) and detailed rating counts for each rating value. These values are updated every time when a new rating and comment is entered.

EXAMPLE:

  • (GET /v2/products/{barcode}/rating)

https://stageapi.trendyol.com/b2bbuyergateway/v2/products/{barcode}/rating

Parameter Type Method Required Description
Barcodes string path Yes
Response Codes
Code Description Response Message
200 Success
{
  "averageRating": 0,
  "totalRatingCount": 0,
  "totalCommentCount": 0,
  "ratingCounts": [
    {
      "rate": 0,
      "count": 0
    }
  ]
}
404 Not Found
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "instance": "string",
  "additionalProp1": {},
  "additionalProp2": {},
  "additionalProp3": {}
}