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