---
title: "Pages the store's product reviews."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo merchant API › review

`GET /v1/stores/{store}/products/{product}/reviews`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `review:read`

## Path parameters

- `store` (`listProductReviews.path.store`; string, required) — The store's id.
- `product` (`listProductReviews.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1

## Query parameters

- `filter` (`listProductReviews.query.filter`; object, optional) — `filter[<field>]=<value>` is an equality, `filter[<field>][<op>]=<value>` names the operator; `in` repeats the parameter.
- `sort` (`listProductReviews.query.sort`; string, optional)
  - one of `"created"`, `"rating"`
- `direction` (`listProductReviews.query.direction`; string, optional)
  - one of `"asc"`, `"desc"`
- `limit` (`listProductReviews.query.limit`; integer, optional)
  - min 1; max 100
- `cursor` (`listProductReviews.query.cursor`; string, optional)
  - maxLength 8192
- `count` (`listProductReviews.query.count`; boolean, optional)
- `search` (`listProductReviews.query.search`; string, optional)
  - minLength 1; maxLength 200
- `facets` (`listProductReviews.query.facets`; array<string>, optional)

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/reviews' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/reviews';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/reviews"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Pages the store's product reviews.

#### Example

```json
{
  "items": [
    {
      "product": {
        "id": "string",
        "slug": "string",
        "path": "string",
        "url": "string",
        "title": "string",
        "category": "string",
        "deleted": true
      },
      "customer": {
        "id": "string",
        "name": "string",
        "email": "string",
        "phone": "string",
        "erased": true
      },
      "id": "string",
      "product_id": "string",
      "customer_id": "string",
      "order_item_id": "string",
      "rating": 0,
      "username": "string",
      "notes": "string",
      "reply": "string",
      "replied_at": "string",
      "hidden_at": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listProductReviews.response.200.items`; array<object>, required)
  - `product` (`listProductReviews.response.200.items.product`; any of, required)
    - any of: `object`, `null`
  - `customer` (`listProductReviews.response.200.items.customer`; any of, required)
    - any of: `object`, `null`
  - `id` (`listProductReviews.response.200.items.id`; string, required)
  - `product_id` (`listProductReviews.response.200.items.product_id`; string, required)
  - `customer_id` (`listProductReviews.response.200.items.customer_id`; string, required)
  - `order_item_id` (`listProductReviews.response.200.items.order_item_id`; any of, required)
    - any of: `string`, `null`
  - `rating` (`listProductReviews.response.200.items.rating`; number, required)
  - `username` (`listProductReviews.response.200.items.username`; any of, required)
    - any of: `string`, `null`
  - `notes` (`listProductReviews.response.200.items.notes`; any of, required)
    - any of: `string`, `null`
  - `reply` (`listProductReviews.response.200.items.reply`; any of, required)
    - any of: `string`, `null`
  - `replied_at` (`listProductReviews.response.200.items.replied_at`; any of, required)
    - any of: `string`, `null`
  - `hidden_at` (`listProductReviews.response.200.items.hidden_at`; any of, required)
    - any of: `string`, `null`
  - `created_at` (`listProductReviews.response.200.items.created_at`; any of, required)
    - any of: `string`, `null`
  - `updated_at` (`listProductReviews.response.200.items.updated_at`; any of, required) — When the customer last edited it; null until they do.
    - any of: `string`, `null`
- `cursor` (`listProductReviews.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listProductReviews.response.200.total`; number, optional)
- `facets` (`listProductReviews.response.200.facets`; map<map<number>>, optional)

### default

A problem; see https://api.sherpo.io/merchant/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`listProductReviews.response.default.type`; string, required)
  - format `uri`
- `title` (`listProductReviews.response.default.title`; string, required)
- `status` (`listProductReviews.response.default.status`; integer, required)
- `detail` (`listProductReviews.response.default.detail`; string, required)
- `code` (`listProductReviews.response.default.code`; string, optional)
- `context` (`listProductReviews.response.default.context`; object, optional)
- `reached_core` (`listProductReviews.response.default.reached_core`; boolean, optional)
- `core_answer` (`listProductReviews.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/list-product-reviews/index.md
