Skip to content

armgit / spree

Public Imported from GitHub
0

Open Source Platform for DTC, B2B Commerce, Marketplaces & Omnichannel. REST APIs, TypeScript SDKs, and production-ready Next.js storefront. Self-host it. Own your data. No vendor lock-in. Zero platform fees.

404 B
Raw Blame
// region:example
// Redirects to a populated example CSV; fetch follows the redirect.
const response = await fetch('https://your-store.com/api/v3/admin/imports/example?type=products', {
  headers: { 'X-Spree-API-Key': 'sk_xxx' },
})
if (!response.ok) throw new Error(`Download failed with status ${response.status}`)
const exampleCsv = await response.text()

// endregion:example

export { exampleCsv }