Commerce Cloud Explained: B2C, B2B and D2C Online Stores on Salesforce
What is Commerce Cloud?
Commerce Cloud is Salesforce's ecommerce product for running online stores. It comes in two technical forms. B2C Commerce is a separate platform with its own admin tool, Business Manager, built for high-volume consumer shopping. B2B Commerce and D2C (direct-to-consumer) Commerce run inside your Salesforce org, on the same records as Sales and Service Cloud. This guide explains what each one does, which business it suits, and what to check before you choose.
Two companies both say "we need Commerce Cloud". One is a fashion brand expecting a traffic spike on launch day. The other sells spare parts to thousands of dealers, each with its own negotiated price list. They need different products, different skills and different architectures, even though the name is the same.
This article explains the two platforms behind the Commerce Cloud name, what each is good at, real store use cases, and the decisions to make first. For where Commerce sits among the other clouds, see our Salesforce clouds overview.
1. Two platforms under one name
The Commerce Cloud developer docs describe distinct solutions for B2B and D2C commerce on one side and B2C commerce on the other. The difference is architectural, not just a matter of who the buyer is:
| B2C Commerce | B2B and D2C Commerce | |
|---|---|---|
| Runs on | Its own realms, separate from the Salesforce Platform | Your Salesforce org |
| Managed in | Business Manager | The Commerce app in Salesforce |
| Storefront tech | SFRA, Composable Storefront, Storefront Next | Experience Cloud store templates (LWR) and Lightning web components |
| Typical buyer | Consumers, high traffic, fast-changing catalogue | Business buyers with accounts and negotiated prices, or consumers buying direct |
| Origin | Salesforce's original ecommerce platform | B2B came from the 2018 CloudCraze acquisition |
2. B2C Commerce: consumer storefronts at scale
B2C Commerce is built for brands and retailers selling to shoppers. Developers choose between several storefront options: the Storefront Reference Architecture (SFRA), the headless Composable Storefront built on the PWA Kit and Managed Runtime, and the newer Storefront Next, which the Commerce developer center describes as using React 19 and Tailwind CSS hosted on Managed Runtime. Custom code talks to the platform through the B2C Commerce API and the Script API.
Because it is a separate platform, users, roles and API client IDs are managed in Account Manager rather than in Salesforce Setup.
3. B2B and D2C Commerce: stores inside your org
Trailhead's Explore B2B and B2B2C Commerce unit explains that B2B and D2C Commerce are built natively on the Salesforce Platform, with a single Commerce app to create and run both kinds of store. Stores are Experience Cloud sites, so buyers are external users of your org. Key pieces include:
- Entitlements that define which products and prices each buyer sees, which is how account-specific pricing works in B2B.
- Integration points for tax, shipping and payment in the cart and checkout, implemented with Apex.
- The Commerce Setup Assistant, which Trailhead says can get a basic store ready for content in about 30 minutes.
- Salesforce Order Management and Omnichannel Inventory, which can be used with B2B and D2C stores.
4. Real-world use cases
Fashion retailer
A clothing brand runs seasonal launches on B2C Commerce, with high-traffic product drops, promotions and a mobile-first storefront.
Parts reordering portal
An industrial manufacturer lets dealers log in, see their own contract prices, reorder from past orders and check order status, all on B2B Commerce in the same org as sales and service.
Brand going direct
A company that sells through wholesalers adds a D2C store for consumers, reusing its Salesforce product catalogue and customer records.
Headless commerce
A retailer builds its own mobile app and web front end on the Composable Storefront and APIs, while B2C Commerce handles catalogue, pricing and orders behind it.
5. How it connects to the other clouds
B2B Commerce works out of the box with Sales Cloud, Service Cloud and Experience Cloud data, according to Trailhead, so a service rep sees the same orders a buyer placed. Order Management handles fulfilment, shipping and returns after checkout. Marketing Cloud runs abandoned-cart and post-purchase journeys, and Data 360 has a connector for B2C Commerce data so shopper behaviour can join the unified customer profile.
6. Decisions to make before you build
- Pick the platform first. B2C Commerce and B2B/D2C Commerce need different developers, different hosting and different licences. Changing later is close to a rebuild.
- Treat B2B buyers as external users. Because B2B stores are Experience Cloud sites, plan licences, sharing and account structure for buyers just as you would for a portal.
- Decide where prices and stock come from. Most stores pull pricing, inventory and order status from an ERP. Design that integration early, because it drives checkout performance.
- Plan post-order processes. Returns, cancellations and customer service usually need Order Management and Service Cloud, not just the storefront.
7. A note on the name
Commerce Cloud was renamed Agentforce Commerce in October 2025, and some Trailhead units still use that name. Salesforce has since returned to the Commerce Cloud name for its core products, so expect both in documentation.
Cheat sheet: which Commerce option?
| If you sell… | Look at |
|---|---|
| To consumers at high volume, with a separate ecommerce team | B2C Commerce |
| To business buyers with account-based prices and reorders | B2B Commerce |
| Direct to consumers, reusing your Salesforce org and catalogue | D2C Commerce |
| Through your own front end or mobile app | Composable Storefront and Commerce APIs |
| And need fulfilment, returns and inventory across channels | Add Order Management and Omnichannel Inventory |
Official Resources
Straight from Salesforce and its product teams: the docs this article is based on.
Trailhead
Developer Docs
Choosing between B2C and B2B Commerce?
Book a session with our architects to match your buyers, pricing and volumes to the right Commerce platform.
All information in this article was collected from publicly available resources, including official Salesforce documentation.