JSON Import
Bulk import using the JSON API format.
Updated
On this page
JSON Import
Import products programmatically using JSON format via the admin API:
import { DashClient } from "dash4devs"
const admin = new DashClient({ apiKey: process.env.DASH4DEVS_SECRET_KEY! })
await admin.admin.importProducts({
products: [
{ name: "Product 1", slug: "product-1", price: "19.99", category: "flower" },
{ name: "Product 2", slug: "product-2", price: "29.99", category: "edibles" },
],
})