Brands
Create and manage product brands.
Updated
On this page
Overview
Brands let you group products by manufacturer or brand. Customers can browse products by brand on the storefront.
SDK Usage
import dash from "@/lib/dash"
// List all brands
const { brands } = await dash.brands.list()
// brands = [{ id, name, slug, logo, description }, ...]
// Get brand with products
const { brand, products, pagination } = await dash.brands.get("premium-farms", {
limit: 20,
offset: 0,
})
Brand Page Example
// app/brands/[slug]/page.tsx
import dash from "@/lib/dash"
export default async function BrandPage({ params }) {
const { brand, products } = await dash.brands.get(params.slug)
return (
<div>
{brand.logo && <img src={brand.logo} alt={brand.name} />}
<h1>{brand.name}</h1>
<p>{brand.description}</p>
<div className="grid grid-cols-2 md:grid-cols-4 gap-4">
{products.map(p => <ProductCard key={p.id} product={p} />)}
</div>
</div>
)
}
REST API
GET /storefront/brands
GET /storefront/brands/premium-farms?limit=20
X-API-Key: pk_live_your_key
Next Steps
- Stock Management — Inventory tracking
- List Products — Filter products by brand