Skip to main content
POST
Available in🇮🇳 India
Use this endpoint to create a review request that asks a customer to review a purchase. Set exactly one of order_id and external_order:
  • order_id references an existing Razorpay Order.
  • external_order carries the details of a sale that happened outside Razorpay, such as a POS bill or a marketplace order.
Handy TipsCreate is idempotent, scoped to one request per order per merchant. The idempotency key is external_order.receipt, or order_id. The first call returns 201, and a repeat returns 200 with the stored entity. Field changes sent on a replay are ignored.

Request Parameters

string
Reference to an existing Razorpay Order. Mutually exclusive with external_order. Set exactly one of the two.
object
Embedded order details for a non-Razorpay sale. Mutually exclusive with order_id. Set exactly one of the two.
string
required
The merchant’s own order id, the same field as receipt on a Razorpay Order. It must be unique per merchant and 1-256 characters long. It acts as the idempotency key.
string
Origin platform of the order, such as pos, business or a marketplace name. Razorpay sets this for platform-fetched orders (shopify, woocommerce).
string
Fulfilment type of the order. Use instant for counter or POS sales, and pending_delivery for shipped orders.
array
The items on the order, 1-100 of them. Each item takes sku, name, variant_id, quantity and image_url. The name and image_url appear in the WhatsApp message and on the review page.
integer
Unix timestamp when the order was purchased.
integer
Unix timestamp when the order was delivered.
object
The customer’s contact details, with name, contact and email. contact is required unless customer_id is set. This object is write-only.
string
Razorpay Customer id, prefixed cust_. When set, contact details come from the Customer and customer may be omitted.
array of strings
What the customer is asked to review: product, order, or both, as an array. The default is ["product", "order"]. It must not be empty.
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 for the full list of response parameters.

Errors

Code: 401The API credentials passed in the API call differ from the ones generated on the Dashboard. Possible reasons:
  • Different keys for test mode and live modes.
  • Expired API key.
Solution: The API keys must be active and entered correctly with no whitespace before or after the keys.
Code: 400The request body carried both order_id and external_order, or neither. The two are mutually exclusive, and exactly one is required.Solution: Pass order_id for a Razorpay sale, or external_order for a sale made outside Razorpay, but not both.
Code: 400external_order was sent without a receipt. The receipt is the merchant order id and the idempotency key, so it is mandatory on an external order.Solution: Include external_order.receipt, unique per merchant and 1-256 characters long.
Code: 400Neither customer.contact nor customer_id was provided, so Razorpay has no way to reach the customer.Solution: Pass customer.contact, or set customer_id to link an existing Razorpay Customer.
Code: 400The review collection feature is not active on your account.Solution: Contact Razorpay support to enable review collection for your account.
Code: 200A review request already exists for this order_id or external_order.receipt. Create is idempotent, so the existing entity is returned instead of a new one.Solution: No action needed. Use the returned entity. Field changes sent on the replay are ignored.
Code: 429You exceeded the create rate limit of 10 requests per second per merchant (burst 20).Solution: Throttle your create calls and retry after a short delay.
Last modified on November 28, 2026