Bulk Import
Import products and customers via JSON.
Updated
On this page
Overview
Import products in bulk via CSV or the admin API. This is useful for migrating from another platform or adding large product catalogs.
CSV Import via Dashboard
- Go to Products → Import in the dashboard
- Download the CSV template
- Fill in your product data
- Upload the completed CSV
- Review and confirm the import
Admin API Import
Use the admin API with a secret key for programmatic imports:
import { DashClient } from "dash4devs"
const dashAdmin = new DashClient({
apiKey: process.env.DASH4DEVS_SECRET_KEY!,
})
await dashAdmin.admin.importProducts({
products: [
{
name: "New Product",
slug: "new-product",
price: "29.99",
category: "flower",
description: "Product description...",
},
// ... more products
],
})
CSV Format
The CSV template includes columns for:
| Column | Required | Description |
|---|---|---|
name | Yes | Product name |
slug | No | URL slug (auto-generated if empty) |
price | Yes | Base price |
category | No | Category slug |
description | No | HTML or plain text description |
image_url | No | Main product image URL |
stock | No | Initial inventory count |
Next Steps
- Product Images — Managing product images
- CSV Import Guide — Detailed CSV format guide
- Shopify Migration — Migrating from Shopify