POST /reviews
/api/store/[slug]/reviewsSubmits a customer product review (rating plus optional text and email) for a product belonging to the store.
Path parameters
slugstringrequiredBusiness store slug (non-empty string, trimmed)
Body parameters
product_idstringrequiredUUID of the product being reviewed; must belong to this business or the request 404s.
customer_emailstringoptionalReviewer email (valid email format, trimmed). Optional and nullable; stored as null when omitted.
ratingnumberrequiredInteger star rating from 1 to 5 inclusive.
review_textstringoptionalReview body, max 5000 characters. Defaults to empty string when omitted.
Responses
The resource was created.
A field failed validation. The response names the fields that failed, not just the first.
No such store, or no such record inside it.
Too many requests. Back off and retry after the window in the response.
Something failed on our side. The response carries no detail; retry is safe on a GET.
What comes back
201 JSON: { success: true, data: { review_id } }. 400 { error } for invalid JSON or failed validation (first Zod issue message), 404 { error } for unknown business or product, 429 { error, retryAfter } with a Retry-After header when the submission rate limit is exceeded (STOREFRONT_REVIEW_SUBMIT: 5 per 15 minutes per IP + slug), 500 on insert failure. Also fires a review_received automation event asynchronously. CORS open (POST, OPTIONS).