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

# Review Entity

> Entity parameters and sample code for the Orders Review API.

Available in
🇮🇳 India

A review is the customer's response to a [review request](https://razorpay.com/docs/api/orders/reviews/review-request-entity.md). Reviews are written only by customers. As a merchant, you read them on the request or through the [Reviews API](https://razorpay.com/docs/api/orders/reviews/fetch-all-reviews.md), and moderate them with [Moderate a Review](https://razorpay.com/docs/api/orders/reviews/moderate-review.md).

The Review entity has the following parameters:

```json Entity theme={null}
{
  "id": "ordrev_Ndx4kpTr77wxyz",
  "entity": "order.review",
  "review_request_id": "rvreq_Nct0mnpQ12abcd",
  "order_id": null,
  "receipt": "RISTA-88921",
  "customer_id": "cust_Nct0mnpQ12cust",
  "customer": {
    "name": "Ananya",
    "contact": "+919812345621",
    "email": "ananya@example.com"
  },
  "applies_to": "product",
  "published_status": "published",
  "rating": 5,
  "body": "Best filter coffee I have had.",
  "media_urls": ["https://ark-media.razorpay.com/r/9f2a1c.jpg"],
  "line_item": {
    "sku": "SKU-BT-114",
    "name": "Attikan Estate",
    "variant_id": "250g-wb"
  },
  "submitted_at": 1752998400,
  "update_request": null
}
```

**id** `string`

The unique identifier of the review. The prefix is `ordrev_`.

**entity** `string`

Name of the entity. Here, it is `order.review`.

**review\_request\_id** `string`

The review request this review answers.

**order\_id** `string`

The Razorpay Order, when the request referenced one. `null` otherwise.

**receipt** `string`

The merchant order id, when the request carried an `external_order`. `null` otherwise.

**customer\_id** `string`

Read-only. The Razorpay Customer id, prefixed `cust_`, when one is known. The customer's details at the time of submission are in `customer`.

**customer** `object`

Read-only snapshot of the customer's details, taken at submission, with `name`, `contact` and `email`. It is not changed by later edits to the Customer. This object is returned only on authenticated merchant APIs, never on public storefront reads.

**applies\_to** `string`

What the review is for. Possible values:

* `product`: A review of a single product on the order. Feeds the product rating.
* `order`: A review of the order as a whole. Feeds no product rating.

**published\_status** `string`

Moderation state of the review. Possible values:

* `published`: Live on the merchant's storefront and counted in ratings.
* `awaiting_approval`: Held for the merchant to approve or hide.
* `hidden`: The merchant unpublished it, or hid it from the queue. Reversible.

See [the moderation lifecycle](#review-moderation-lifecycle) below. Only `published` is publicly visible.

**rating** `integer`

The rating the customer gave, from 1 to 5.

**body** `string`

The written review. An empty string when the customer left a rating only.

**media\_urls** `array`

Photo and video URLs attached to the review, in upload order. Empty when none.

**line\_item** `object`

The line item this review is against, echoing `sku`, `name` and `variant_id`. `null` when `applies_to` is `order`.

**submitted\_at** `integer`

Indicates the Unix timestamp when the review was submitted.

**update\_request** `object`

The merchant's ask to reconsider this review, when one exists. Always `null` when `applies_to` is `order`. See the [Update Request entity](https://razorpay.com/docs/api/orders/reviews/update-request-entity.md).

## Review moderation lifecycle

The lifecycle applies to `product` and `order` reviews alike. The publishing mode and the auto-publish minimum rating are configured outside this API.

| Status | Meaning |
| - | - |
| `published` | Live on the merchant's storefront and counted in ratings. |
| `awaiting_approval` | Held for the merchant to approve or hide. This is the state in manual mode always, and in auto mode when the rating is below the auto-publish minimum. |
| `hidden` | The merchant unpublished it, or hid it from the queue. Reversible. |

The transitions are:

* On submission: to `awaiting_approval` in manual mode; to `published` in auto mode when the rating is at or above the minimum; to `awaiting_approval` in auto mode when the rating is below the minimum.
* `awaiting_approval` to `published` or `hidden`.
* `published` to `hidden`, and back.
* `published` to `awaiting_approval` on a content revision through an update request, in manual mode.

> [!NOTE]
>
> **Handy Tips**
>
> Only `published` reviews are publicly visible. Unrecognised states stay hidden. The internal `created` state is never returned.

> [!NOTE]
>
> **Data handling**
>
> A review carries `customer_id` and a `customer` snapshot (name, contact, email) taken at submission, so the record stays as submitted even if the Customer is edited later. The snapshot is returned only on authenticated merchant APIs; public storefront reads never include it. On submission, Razorpay also records the submitting IP, user agent and origin host with the review for fraud analysis and audit. These are not returned by any endpoint and are retained per the data-retention policy.
