Available in🇮🇳 India
Reviews APIs let you ask a customer to review a purchase, read the reviews they submit and moderate them before they go live. The model is order → review request → review: you create a review request against a Razorpay Order or a sale made outside Razorpay, Razorpay reaches the customer, and the reviews they submit come back nested on the request. You can also ask a customer to reconsider a low review through an update request.
A single resource covers every sales channel: online sales use the Razorpay order_id, while POS bills and marketplace orders use the embedded external_order.
Handy TipsSet exactly one of
order_id and external_order when you create a review request. Use order_id for a Razorpay sale, and external_order for a sale made outside Razorpay, such as a POS bill or a marketplace order. Know more about why external orders are modelled separately from paid Orders.Review Requests
Create a Review Request
POST /v1/orders/review_requestsCreates a review request against a Razorpay Order or an external order.Fetch a Review Request
GET /v1/orders/review_requests/:idRetrieves a review request by its id.Fetch All Review Requests
GET /v1/orders/review_requestsRetrieves the details of all review requests.Update a Review Request
PATCH /v1/orders/review_requests/:idSends a delivery signal, cancels a request or updates its notes.Reviews
Fetch a Review
GET /v1/orders/reviews/:idRetrieves a review by its id.Fetch All Reviews
GET /v1/orders/reviewsRetrieves the details of all reviews, with moderation filters.Moderate a Review
PATCH /v1/orders/reviews/:idPublishes or hides a review.Update Requests
Create an Update Request
POST /v1/orders/reviews/update_requestsAsks a customer to reconsider a submitted review.Fetch an Update Request
GET /v1/orders/reviews/update_requests/:idRetrieves an update request by its id.Entities
Review Request Entity
Parameters of the
order.review_request entity.Review Entity
Parameters of the
order.review entity.Update Request Entity
Parameters of the
order.review.update_request entity.Authentication, errors and limits
- Authentication: HTTP Basic, with
key_id:key_secret. The merchant identity comes from the key. - Errors: the standard Razorpay error envelope, with
code,description,source,step,reasonandfield.400for validation, including the both-or-neither rule onorder_idandexternal_order, or when the merchant is not enabled;401for auth;404for an unknown id;429for the rate limit;5xxfor transient errors. - Rate limit: 10 requests per second per merchant on create, with a burst of 20.