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.
Ruby b2b-commercee-commerceecommerceecommerce-apiecommerce-frameworkecommerce-platformheadlessheadless-commerceheadless-ecommercemarketplacemulti-tenantmulti-vendormulti-vendor-ecommerceopen-sourcespree-commerce
// 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 }