---
title: "Open Source B2B eCommerce Platform | Spree Commerce"
description: "Open source B2B ecommerce platform with customer-specific pricing, buyer organizations, and approval workflows. REST API, TypeScript SDK, zero platform fees."
url: https://spreecommerce.org/use-cases/b2b-ecommerce-platform/
---

Open Source B2B eCommerce

# B2B eCommerce Platform that you can fully customize, control and own

Manage customer-specific pricing, buyer organizations with approval workflows, and gated storefronts from a single back office. Integrate with any ERP or procurement system through the production-grade REST API and TypeScript SDK.

[Get started](https://spreecommerce.org/get-started.md)[Contact us](https://spreecommerce.org/contact.md)

Used by over 5K businesses worldwide

## Brands that have built on Spree Commerce

- ![Bookshop, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/d3ce4b4e4af92dcc68f6324459ad10ae960d5bc2-148x22.svg?h=40&auto=format)
- ![Bonobos, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/213253bbb1d2055c55474bea9e6cdf76cdffea26-110x16.svg?h=40&auto=format)
- ![GoDaddy, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/317c2e6c41b3125f0d0e0d7775a1123da7a5a132-125x26.svg?h=40&auto=format)
- ![Huckberry, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/2d071a419607a7339bd8d7246f9c4ae92e8ff10a-147x24.svg?h=40&auto=format)
- ![KFC, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/8a2dfe3ca6346433e0acd5831c4e22381cb33dea-76x24.svg?h=40&auto=format)
- ![Mitchells, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/8f9ebfb5dfd9f6ff0255993babfacb4f816cd9d9-160x24.svg?h=40&auto=format)
- ![Blue Apron, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/46853d8da42caca95feb938646663891748c0ecf-132x61.svg?h=40&auto=format)
- ![DieHard, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/71648bc537330a7a65c3273c432ec15e717693f0-2500x528.svg?h=40&auto=format)
- ![Kenmore, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/74191dae02da0079ead01e4710463f058640abe0-3705x750.svg?h=40&auto=format)
- ![Garmentory, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/3ed59bbecd75bd8fe4c7d35a48cd604fb951064c-644x367.svg?h=40&auto=format)
- ![Maisonette, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/7c30d51173954e3a2c557c62b63f2c57a596bfb4-123x8.svg?h=40&auto=format)
- ![Marley Spoon, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/93e5699ce7378958a30f23375d3cb457f540354f-622x95.svg?h=40&auto=format)
- ![Packhelp, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/088c3d49b5d9c5fcf73018d36c034c1a0539a6ab-145x28.svg?h=40&auto=format)
- ![New England Patriots, built on Spree Commerce](https://cdn.sanity.io/images/bf8853mr/production/1b0081e430fef4429f4d4235992279bd52dd47b9-193x94.svg?h=40&auto=format)

Brands like Bookshop, Bonobos, GoDaddy, KFC, Mitchells, Blue Apron, and DieHard have built ecommerce on Spree Commerce, alongside 5,000+ other businesses worldwide.

## Wholesale & B2B eCommerce

Spree is an open source B2B ecommerce platform for wholesale distributors, manufacturers, and B2B brands running complex buyer relationships from a single back office. [Price Lists](https://spreecommerce.org/docs/user/pricing/price-lists), [Customer Segments](https://spreecommerce.org/docs/user/customers/customer-groups), [Buyer Organizations](https://spreecommerce.org/docs/user/customers/companies), and [Approval Workflows](https://spreecommerce.org/docs/developer/core-concepts/companies#order-approvals) are available out of the box, extendable through the [REST API](https://spreecommerce.org/docs/api-reference/store-api/introduction).

[See all Capabilities](https://spreecommerce.org/docs/developer/how-to/build-a-b2b-store)

## Admin Capabilities

As the operator of a B2B ordering platform, you have full control over your B2B storefront, catalog visibility, and checkout flows. Every capability is accessible through the [REST API](https://spreecommerce.org/docs/api-reference/store-api/introduction) with OpenAPI 3.0, so your team can integrate Spree with any ERP, PIM, or procurement system using the [TypeScript SDK](https://spreecommerce.org/docs/developer/sdk/quickstart).

[See Admin Capabilities](https://spreecommerce.org/docs/user/how-to/selling-to-businesses)

- [B2B Customer Segmentation & Pricing](https://spreecommerce.org/docs/user/pricing/price-lists)
    
    Use Price Lists for volume and contract pricing, and Customer Segments to group accounts by tier, region, or sales channel for targeted catalogs and promotions.
    
- [Buyer Organizations & Approval Workflows](https://spreecommerce.org/enterprise.md)
    
    Create account hierarchies with parent/child company structures, spending limits, role-based purchasing, and configurable approval chains so managers sign off before orders ship.
    

- [Gated Storefronts & Access Controls](https://spreecommerce.org/docs/developer/how-to/build-a-b2b-store#gate-the-storefront)
    
    Create gated storefronts, approve or reject signups, and assign customers to segments.
    
- [Invoicing, Tax & Compliance](https://spreecommerce.org/docs/developer/how-to/build-a-b2b-store#take-orders-on-account)
    
    Handle on-terms payments, third-party invoicing and tax calculations, and industry-specific sales processes, including post-purchase documentation.
    
- [Product & Ordering Workflows](https://spreecommerce.org/docs/developer/how-to/build-a-b2b-store)
    
    Enable bulk ordering, saved templates, and repeat purchases for high-volume buyers.
    
- [Fulfillment & Inventory Models](https://spreecommerce.org/docs/user/settings/locations)
    
    Assign inventory to multiple warehouses, use Markets to localize currencies, languages, and shipping rules per country, and configure custom fulfillment logic for your B2B supply chain.
    

## Self-Service B2B Ordering

Spree powers self-service B2B ordering portals with per-account catalogs, pricing, and quick reorder tools. Customize [Next.js wholesale](https://spreecommerce.org/docs/developer/storefront/nextjs/wholesale) storefront, with the [TypeScript SDK](https://spreecommerce.org/docs/developer/sdk/quickstart) and CLI, or accelerate development with Spree’s AGENTS.md and MCP server for AI coding assistants.

[See Buyer Capabilities](https://spreecommerce.org/docs/developer/storefront/nextjs/wholesale)

- [Quick Order & Reorder](https://spreecommerce.org/docs/developer/storefront/nextjs/wholesale)
    
    Access personalized pricing, use quick order tools, and place large or recurring orders through quick-order forms instead of adding to cart.
    
- [B2B Checkout & Payments](https://spreecommerce.org/docs/developer/how-to/build-a-b2b-store#check-out-for-a-company)
    
    Process payments through the Payment Sessions API with Stripe, Adyen, or any PSP. Support multiple delivery addresses, on-terms invoicing, and saved purchase details for repeat orders.
    

- [B2B Account Management](https://spreecommerce.org/docs/user/customers/companies)
    
    Register with business-specific fields and manage team members, roles, and profiles.
    
- [Post-Purchase & Returns](https://spreecommerce.org/docs/user/orders/returns)
    
    Access order, shipment and invoicing history, shipment tracking, product related documentation, certificates and other documents to meet regulatory requirements.
    
- [Notifications & Communication](https://spreecommerce.org/docs/user/settings/emails)
    
    Receive notifications, contact support, and check account audit logs to retrace your team’s steps, if needed.
    

What you get

## Your B2B wholesale ecommerce platform, built for scale

Whether you’re running a wholesale ordering portal, managing distributor networks, or operating a B2B2C hybrid, Spree gives you the tools to tailor every part of the buyer journey while maintaining full ownership and control over your platform.

- Gated Storefront Access
    
    Restricting visibility of products and pricing until account approval is a must for many B2B businesses.
    
- Custom Pricing Logic
    
    A flexible B2B pricing engine including per-segment and per-customer pricing, volume discount, and customer-specific payment methods and terms.
    
- Organizations & Buyer Roles
    
    Multi-user organizations with user role permissions and approval workflows to support your sales process.
    

## Frequently Asked Questions

**What features should an open source B2B ecommerce platform include?**

A B2B ecommerce platform should include customer-specific pricing, buyer organizations with role-based purchasing and approval workflows, gated storefronts, and ERP integration through a REST API. Spree Commerce ships customer-specific pricing and gated storefronts in its free Community Edition, and Buyer Organizations with role-based purchasing, approval workflows, and quick-order forms in its Enterprise Edition.

**How do you set up wholesale pricing for different buyer groups?**

Spree Commerce includes Price Lists, a native feature that lets you define volume discounts, contract rates, and segment-specific pricing from the admin panel. Assign different price lists to individual accounts or customer segments, so each buyer sees their negotiated rates the moment they log in. Price Lists and Customer Segments ship in Spree Commerce’s free Community Edition.

**Can a B2B ecommerce platform integrate with ERP and procurement systems?**

Spree Commerce exposes every commerce operation through a production-grade REST API with OpenAPI 3.0 specs. Your team can connect it to SAP, NetSuite, Oracle, or any ERP using the TypeScript SDK or by generating typed clients in any language. ERP integration is one of the most common B2B requirements, and Spree Commerce treats it as a first-class path.

**What is a headless B2B ecommerce platform?**

A headless B2B ecommerce platform separates the commerce engine (pricing, orders, inventory) from the storefront layer, so your team can build a custom buyer portal on any frontend technology while commerce runs via API. Spree Commerce is a headless B2B platform with a production-grade REST API, TypeScript SDK, and a Next.js storefront starter.

**How do buyer organizations and approval workflows work in B2B ecommerce?**

Buyer organizations mirror your customers’ company structures inside the platform, giving each organization its own users, roles, spending limits, and product access. Approval workflows add a management layer where designated approvers sign off on orders before they are submitted. Company accounts ship in the free Community Edition; company roles, spending limits, and Approval Workflows ship in Enterprise Edition.

**Can you run B2B and DTC sales on one ecommerce platform?**

Spree Commerce runs B2B and DTC from a single instance using Markets and Customer Segments. Wholesale buyers see negotiated prices, volume discounts, and bulk ordering tools, while retail customers get the standard storefront experience, all managed from one admin panel. Brands selling both to distributors and consumers avoid running two separate platforms.

**How does an open source B2B platform compare to Shopify Plus for B2B?**

Spree Commerce gives you full code ownership, zero platform fees, and the freedom to deploy on your own infrastructure, with native B2B features (price lists, buyer organizations, approval workflows) instead of bolted-on add-ons. Shopify Plus added B2B as an extension of its DTC platform, charges transaction fees, limits API access, and locks you into its payment infrastructure.

## Spree Commerce Success Stories

- [B2B](https://spreecommerce.org/success-stories/3form-b2b-product-sample-ordering-enabled-with-spree-commerce.md)
    
    3form B2B product sample ordering enabled with a Spree Commerce cart and checkout with an ERP integration
    
- [B2B](https://spreecommerce.org/success-stories/gasido-uses-spree-for-its-online-b2b-marketplace-for-industrial-gases.md)
    
    Gasido uses Spree for its online B2B marketplace for industrial gases
    
- [B2B](https://spreecommerce.org/success-stories/nuherbs-launches-a-spree-b2b-e-commerce-platform-for-dietary-supplements-wholesale-business.md)
    
    Nuherbs launches a wholesale B2B E-Commerce platform for dietary supplements with Spree Commerce
    
- [B2B](https://spreecommerce.org/success-stories/packhelp-uses-spree-to-allow-ecommerce-owners-to-design-and-order-their-own-custom-packaging-online.md)
    
    Packhelp uses Spree for its B2B web-to-print Ecommerce platform
