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.

Admin Capabilities

As the operator of a B2B ordering platform, you have full control over how business buyers access your storefront, interact with your catalog, and complete their purchases. Every capability is accessible through the REST API with OpenAPI 3.0 specs, so your team can integrate Spree with existing ERP, PIM, and procurement systems using the TypeScript SDK or generate typed clients in any language.

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.

Gated Storefronts & Access Controls

Create gated storefronts, approve or reject signups, and assign customers to segments.

Invoicing, Tax & Compliance

Handle on-terms payments, third-party invoicing and tax calculations, and industry-specific sales processes, including post-purchase documentation.

Product & Ordering Workflows

Enable bulk ordering, saved templates, and repeat purchases for high-volume buyers.

Fulfillment & Inventory Models

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

With per-customer product catalogs and pricing, quick-order and re-order tools, and business-friendly checkout flows, Spree enables you to deliver a self-service B2B buying experience. Build your storefront with the Next.js starter, integrate via the TypeScript SDK and CLI, or use Spree’s AGENTS.md and MCP server to streamline development with AI coding assistants.

Quick Order & Reorder

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

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

Register with business-specific fields and manage team members, roles, and profiles.

Post-Purchase & Returns

Access order, shipment and invoicing history, shipment tracking, product related documentation, certificates and other documents to meet regulatory requirements.

Notifications & Communication

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

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.

Used by over 5K businesses worldwide

Let's use Spree to build exactly what your business needs

facebook