> ## Documentation Index
> Fetch the complete documentation index at: https://developers-docs.easyorders.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Reviews

> Add, moderate and remove the reviews of the store's products.

Scopes: `read_reviews` to read, `write_reviews` to change (it includes `read_reviews`).

## The review

```json theme={"dark"}
{
  "id": "7e3d9a2b-5c1f-4b8e-a6d4-3f2e1d0c9b8a",
  "product_id": "0b6f3c7e-3a1d-4a8e-9d5e-2f1b7c9a4e10",
  "rating": 5,
  "user_name": "Sara Adel",
  "comment": "Great quality, arrived in two days.\nWould buy again.",
  "image": "https://cdn.example.com/reviews/sara-shoes.jpg",
  "is_accepted": true,
  "created_at": "2026-12-04T12:30:00Z",
  "updated_at": "2026-12-04T12:30:00Z"
}
```

| Field | |
| - | - |
| `product_id` | A live product of this store. Set on create and **never changes**: sending it in a `PATCH` answers `422` with the rule `read_only`. |
| `rating` | A whole number from **1 to 5**. |
| `user_name` | Required. One line of plain text, 1 to 255 characters, trimmed. |
| `comment` | Plain text up to 5,000 characters, trimmed. Line breaks are kept. `""` for none. |
| `image` | An `https` URL up to 2,048 characters, or `""` for none. |
| `is_accepted` | Whether the product page shows the review. `false` unless you send `true`. |

## Plain text

The product page shows `user_name` and `comment` as they are, so both refuse `<` and invisible characters (`422`, rule `text`). `user_name` is one line; `comment` may hold line breaks and tabs.

The `image` must be `https`, with a host, no user name or password, no `#` fragment, and none of `"`, `'`, `<`, `>`, `` ` ``, `\` or spaces (rule `url`).

## Accepting reviews

Your app decides what shows: a review is shown on the product page only while `is_accepted` is `true`. A new review starts hidden unless you create it with `"is_accepted": true`; accept or hide one later with [Update a review](https://developers-docs.easyorders.ai/api-reference/reviews/update-a-review.md). Whether a product shows reviews at all is the merchant's product setting, and does not stop you from adding them.

Changes show on the product page at once.

## Deleting

[Delete a review](https://developers-docs.easyorders.ai/api-reference/reviews/delete-a-review.md) removes it **for good**, as the dashboard does. To take a review off the product page and keep it, set `is_accepted` to `false` instead.

## Events

Creating a review sends the `reviews/created` event. Updating and deleting send none.

Create with an [`Idempotency-Key`](https://developers-docs.easyorders.ai/concepts/idempotency) to retry safely. Lists are [paginated](https://developers-docs.easyorders.ai/concepts/pagination.md) and filter by `product_id`, `is_accepted`, `rating` and `created_at`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.