> ## 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.

# Update a Review Request

> Update a Review Request using the Razorpay Orders Review API.

Available in
🇮🇳 India

Use this endpoint to update a review request. The request body determines the behaviour:

| Intent | Body | Behaviour |
| - | - | - |
| Delivery signal | `{ "external_order": { "delivered_at": 1752825600 } }` | Makes a `pending_delivery` request eligible for scheduling. `delivered_at` must be greater than or equal to `purchased_at`. Repeats are no-ops. |
| Cancel | `{ "status": "cancelled" }` | Permanently stops the message and all reminders. Use it on order cancellation or refund. If the message was already sent, the entity keeps `"status": "sent"` and history is not rewritten. |
| Annotate | `{ "notes": {…} }` | Updates `notes` only, as on the Orders API. |

> [!WARNING]
>
> **Watch Out!**
>
> `cancelled` is the only writable value for `status`. Any other value returns `400`.

```bash Curl theme={null}
curl -u [YOUR_KEY_ID]:[YOUR_KEY_SECRET] \
-X PATCH https://api.razorpay.com/v1/orders/review_requests/rvreq_Nct0mnpQ12abcd \
-H "content-type: application/json" \
-d '{
  "external_order": {
    "delivered_at": 1752825600
  }
}'
```

```json Success theme={null}
{
  "id": "rvreq_Nct0mnpQ12abcd",
  "entity": "order.review_request",
  "status": "scheduled",
  "is_razorpay_order": false,
  "applies_to": ["product", "order"],
  "order_id": null,
  "external_order": {
    "receipt": "RISTA-88921",
    "source": "pos",
    "fulfillment": "pending_delivery",
    "line_items": [
      {
        "sku": "SKU-BT-114",
        "name": "Attikan Estate",
        "variant_id": "250g-wb",
        "quantity": 1,
        "image_url": "https://cdn.example.com/attikan.jpg"
      }
    ],
    "purchased_at": 1752739200,
    "delivered_at": 1752825600
  },
  "cancelled_at": null,
  "reviews": [],
  "notes": {},
  "created_at": 1752739210
}
```

```json Failure theme={null}
{
  "error": {
    "code": "BAD_REQUEST_ERROR",
    "description": "cancelled is the only writable status.",
    "source": "business",
    "step": "payment_initiation",
    "reason": "input_validation_failed",
    "field": "status"
  }
}
```

## Path Parameters

**id** `string` *required*

Unique identifier of the review request to be updated. The prefix is `rvreq_`.

## Request Parameters

**external\_order.delivered\_at** `integer`

Unix timestamp when the order was delivered. Sends the delivery signal that makes a `pending_delivery` request eligible for scheduling. It must be greater than or equal to `purchased_at`. Repeats are no-ops.

**status** `string`

Set to `cancelled` to permanently stop the message and all reminders. `cancelled` is the only writable value.

**notes** `json object`

Key-value pair that can be used to store additional information about the entity. Maximum 15 key-value pairs, 256 characters (maximum) each. For example, `"note_key": "Beam me up Scotty”`.

## Response Parameters

See the [Review Request entity](https://razorpay.com/docs/api/orders/reviews/review-request-entity.md) for the full list of response parameters.

## Errors

> [accordion] Authentication failed.
>
> **Code:** `401`
>
> The API credentials passed in the API call differ from the ones generated on the Dashboard.
>
> **Solution:** The API keys must be active and entered correctly with no whitespace before or after the keys.

> [accordion] cancelled is the only writable status.
>
> **Code:** `400`
>
> The `status` field was set to a value other than `cancelled`.
>
> **Solution:** Pass only `"status": "cancelled"`. The status otherwise moves on its own through the request lifecycle.

> [accordion] delivered\_at must be greater than or equal to purchased\_at.
>
> **Code:** `400`
>
> The `delivered_at` timestamp sent as the delivery signal is earlier than `purchased_at`.
>
> **Solution:** Pass a `delivered_at` value that is greater than or equal to the order's `purchased_at`.

> [accordion] The id provided does not exist.
>
> **Code:** `404`
>
> The review request id does not exist or does not belong to the requestor.
>
> **Solution:** Ensure you use a valid review request id that belongs to the requestor.
