Submit Review
Allow customers to submit product reviews.
Updated
On this page
Overview
Allow customers to submit reviews for products they have purchased.
SDK Usage
import dash from "@/lib/dash"
const { review } = await dash.products.submitReview("blue-dream", {
rating: 5, // 1-5, required
author_name: "John D.", // required
author_email: "john@example.com", // optional
title: "Amazing quality", // optional
body: "Best product I've tried!", // optional
variation_slug: "blue-dream", // optional: which variation was reviewed
media_urls: ["https://..."], // optional: photo URLs
})