List product reviews

Retrieves a list of product reviews for a specified product with pagination and sorting.

get/products/{product_id}/reviews

Request

  • Base URL
    https://api.ecommerceapi.uk/v1
  • URL
    https://api.ecommerceapi.uk/v1/products/{product_id}/reviews
  • Auth
    HTTP basic

Path parameters

product_idinteger required

The unique identifier of the product.

Query parameters

countinteger

Number of records to retrieve (default: 50, max: 100).

offsetinteger

Number of records to skip.

sort'created' | 'created_asc' | 'created_desc'
Example:created_desc

Sorting order for the results. Defaults to no sorting.

fieldsstring

Comma-separated list of fields to include in the response.

Response

A list of product reviews.

idinteger

Unique identifier for the product review.

createdAtstring date-time

Timestamp when the review was created.

namestring

The name of the customer who added the review.

contentstring

The content of the review.

ratinginteger

The review rating (between 1 and 5).

activeboolean

Indicates whether the review is displayed.

Changes

No recorded changes to this operation across all 1 revision of this API.