Search Documentation
Search for a documentation page...
Reviews API
REST API endpoints for product reviews and moderation.
Reviews are customer-submitted ratings (1-5 stars) and text for a product. Submission is public-facing and goes through the product endpoint, where reviews are created pending approval (approved: false). The store owner moderates them via the moderation endpoints — listing pending reviews, approving/rejecting, or deleting. Only approved reviews appear on the storefront.
List Reviews (Moderation)
Returns reviews for moderation, including pending ones. To submit a review, use POST /api/v1/products/{idOrSlug}/reviews.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 10 | Reviews per page (1-100) |
offset | number | 0 | Reviews to skip |
approved | boolean | — | Filter by approval status (omit for all, including pending) |
productId | string | — | Filter to reviews of a single product (UUID) |
rating | number | — | Filter by star rating (1-5) |
Response (200)
Get Review
Returns a single review by UUID.
Response (200)
Approve or Reject a Review
Sets a review's approved flag — true publishes it on the storefront, false unpublishes/rejects it.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
approved | boolean | Yes | Set true to publish the review, false to unpublish/reject it |
Response (200)
Returns the updated review (same shape as Get Review).
Delete Review
Hard-deletes the review by UUID.
Response (200)
List Product Reviews
Returns approved reviews for a single product, with pagination and summary statistics (average rating and total review count). The product can be referenced by UUID or slug. When translations are enabled, pass ?lang= to resolve a translated slug.
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | number | 10 | Reviews per page (1-100) |
offset | number | 0 | Reviews to skip |
Response (200)
Create Product Review
Submits a new review for a product. Reviews are created with approved: false and must be approved by the store owner (via PATCH /api/v1/reviews/{id}) before they appear publicly.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
author | string | Yes | Reviewer display name (1-100 characters) |
email | string | Yes | Reviewer email address |
content | string | Yes | Review text (1-5000 characters) |
rating | number | Yes | Star rating (1-5) |