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.
Wholesale & B2B eCommerce
Spree is an open source B2B ecommerce platform that gives wholesale distributors, manufacturers, and B2B brands the tools to run complex buyer relationships from a single back office. Set up Price Lists for volume and contract pricing, group accounts with Customer Segments, manage Buyer Organizations with account hierarchies and spending limits, and enforce Approval Workflows before orders ship. Every capability is available out of the box and extendable through the REST API.

B2B Customer Segmentation & Pricing
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
Create account hierarchies with parent/child company structures, spending limits, role-based purchasing, and configurable approval chains so managers sign off before orders ship.

Access personalized pricing, use quick order tools, and place large or recurring orders through quick-order forms instead of adding to cart.

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.
FREQUENTLY ASKED QUESTIONS
How does an open source B2B platform compare to Shopify Plus for B2B?
Shopify Plus added B2B features as an extension of its DTC platform, but it charges transaction fees, limits API access, and locks you into its payment infrastructure. An open source platform like Spree Commerce gives you full code ownership, zero platform fees, and the freedom to deploy on your own infrastructure. You also get native B2B features (price lists, buyer organizations, approval workflows) instead of bolted-on add-ons.
Can you run B2B and DTC sales on one ecommerce platform?
Many brands sell wholesale to distributors and direct to consumers, each with different pricing, catalogs, and checkout flows. Spree Commerce supports both B2B and DTC from a single instance using Markets and Customer Segments. Your wholesale buyers see negotiated prices and bulk ordering tools, while retail customers get the standard storefront experience, all managed from one admin panel.
How do buyer organizations and approval workflows work in B2B ecommerce?
Buyer organizations let you mirror your customers’ company structures inside the platform. Each organization has its own users, roles, spending limits, and product access. Approval workflows add a management layer where designated approvers must sign off on orders before they are submitted. Spree Commerce supports both through its Enterprise Edition, so you can handle complex purchasing hierarchies without custom code.
What is a headless B2B ecommerce platform?
A headless B2B ecommerce platform separates the commerce engine (pricing, orders, inventory) from the storefront (what buyers see and interact with). This means your development team can build a custom buyer portal using any frontend technology while the commerce logic runs independently via API. Spree Commerce follows this architecture with a REST API and a production-ready Next.js storefront starter.
Can a B2B ecommerce platform integrate with ERP and procurement systems?
ERP integration is one of the most common requirements for B2B ecommerce. Spree Commerce exposes every commerce operation through a production-grade REST API with OpenAPI 3.0 specs, so your team can connect it to SAP, NetSuite, Oracle, or any ERP using the TypeScript SDK or by generating typed clients in their preferred language.
How do you set up wholesale pricing for different buyer groups?
Most B2B platforms require custom development or plugins for customer-specific pricing. Spree Commerce includes Price Lists that let you define volume discounts, contract rates, and segment-specific pricing from the admin panel. You can assign different price lists to individual accounts or customer segments, so each buyer sees their negotiated rates the moment they log in.
What features should an open source B2B ecommerce platform include?
A B2B ecommerce platform should include customer-specific pricing (volume discounts, contract rates, and tiered price lists), buyer organizations with role-based purchasing and approval workflows, gated storefronts for account-only access, and ERP integration through a REST API. Spree Commerce ships all of these as native features, not third-party plugins, under the BSD 3-Clause open source license.