dash.products
All product-related SDK methods.
Updated
All product-related SDK methods.
Updated
const { products, pagination } = await dash.products.list({
limit: 20, offset: 0, category: "flower", search: "blue", brand: "farms",
customFields: { featured: "true" }, expand: "sizes",
})
Get full product details. See Get Product by Slug.
const { product } = await dash.products.get("blue-dream")
Lightweight product data (no variations). Ideal for SSR.
const { product } = await dash.products.getCore("blue-dream")
Heavy product data (variations, sizes, bulk discounts). Ideal for client-side loading.
const { options } = await dash.products.getOptions("blue-dream")
Get product reviews. See Get Product Reviews.
const { reviews, stats, pagination } = await dash.products.getReviews("blue-dream", { limit: 10 })
Submit a review. See Submit Review.
await dash.products.submitReview("blue-dream", { rating: 5, author_name: "John" })
Get all approved reviews across products.
const { reviews, avg_rating, total } = await dash.products.getAllReviews({ sort: "newest" })
Get variations marked as featured.
const { variations } = await dash.products.getFeaturedVariations()