Skip to main content
Scopes: read_reviews to read, write_reviews to change (it includes read_reviews).

The review

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. 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 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 to retry safely. Lists are paginated and filter by product_id, is_accepted, rating and created_at.