A Guide to Headless E-Commerce Architecture
Learn how headless commerce separates the storefront from commerce services, what APIs connect them, and when the added engineering work is worthwhile.
Headless e-commerce separates the customer-facing storefront from the commerce backend, then connects them through APIs. It lets a team build a custom web or app experience around commerce capabilities supplied by a platform. It does not automatically make a store faster, cheaper, or more successful: the frontend, integrations, hosting, security, and ongoing operations still need to be built and maintained.
1. What headless e-commerce means
In a traditional storefront, presentation and commerce operations are closely tied together in one platform experience. In a headless setup, the presentation layer is decoupled. A frontend application requests commerce data and actions—such as product information, cart operations, and checkout—through APIs.
Think of it as customer touchpoints → frontend application → API layer → commerce backend and related services. This is a conceptual model; the actual components and boundaries depend on the platform and deployment.
Adobe describes headless commerce as API-based and exposes commerce services and data through a GraphQL API layer. Shopify likewise describes a separation between the ecommerce frontend and backend operations, with APIs connecting them. See Adobe’s headless commerce overview and Shopify’s explanation of headless commerce.
2. How the pieces fit together
- Customer touchpoints: A website, mobile app, game, or another channel presents the shopping experience.
- Frontend application: The application renders pages and handles customer interactions. It decides how catalog, cart, account, and checkout capabilities appear to shoppers.
- API layer: Requests and responses connect the frontend to commerce functions and data. The API may be provided by the commerce platform or by additional services.
- Commerce backend: The platform manages commerce capabilities such as catalog and order operations. Other services may provide content, search, customer data, inventory, or other functions.
The storefront can be changed independently from backend capabilities where the APIs support the required work. Multiple touchpoints can use the same commerce capabilities, but each touchpoint still needs an implemented and maintained experience.
3. What headless enables—and what it does not
It can enable
- A custom storefront whose design and frontend stack are developed independently of the commerce backend.
- Different customer experiences for websites, mobile applications, and other channels using commerce APIs.
- Incremental changes to the frontend while retaining a platform-provided backend.
- Integration with additional services when the architecture and APIs support them.
For example, Shopify documents custom storefronts for websites and mobile apps, shopping in games, and custom channels through its Storefront API. Salesforce describes a custom storefront built on Commerce API that can be augmented with other vendors, such as search or a CMS. These are examples of vendor capabilities, not a neutral comparison of platforms. See Shopify Storefront documentation and Salesforce Composable Storefront documentation.
It does not guarantee
- Higher conversion, better performance, lower operating cost, or faster delivery. Those outcomes depend on implementation and are not established by the sources cited here.
- That every integration will be simple or that every desired backend capability is available through the platform APIs.
- That the frontend or APIs will maintain themselves. Teams still own deployment, observability, security, failure handling, and updates according to their setup.
4. Headless versus composable commerce
Headless describes the separation of the presentation layer from backend commerce capabilities. Composable commerce is a broader modular approach: a business assembles capabilities from different components or providers. A headless storefront may still use a largely platform-provided backend; adopting headless does not require replacing every service.
Adobe training materials associate composable commerce with microservices, API-first, cloud-native, and headless principles. Salesforce’s storefront documentation shows how a commerce platform can be combined with other vendors. The terms are related, but they describe different architectural scope.
| Approach | What changes | Typical responsibility to assess |
|---|---|---|
| Platform storefront | Storefront and commerce capabilities remain closely tied to the platform’s supported experience. | How much design and frontend control the platform provides. |
| Headless on an existing platform | A custom frontend uses the platform’s commerce APIs. | Frontend delivery and the API integrations the custom experience needs. |
| Composable stack | Multiple capabilities may come from independently selected components or providers. | Integration, coordination, and operational ownership across components. |
5. Platform examples
These examples describe each vendor’s documented offering; they are not a ranking or a claim of feature parity.
- Shopify: Its Storefront API supports custom storefronts. Shopify identifies Hydrogen as its React-based development framework and Oxygen as its hosting solution. Other frontend stacks can also use documented APIs. See Storefronts documentation and Hydrogen documentation.
- Adobe Commerce: Adobe documents a decoupled architecture in which commerce services and data are exposed through GraphQL APIs, allowing the frontend to be developed independently. See Adobe Commerce headless commerce.
- Salesforce: Salesforce documents Composable Storefront using PWA Kit, an open-source JavaScript and React framework, and Managed Runtime for deployment and hosting, built on Salesforce Commerce API. See Salesforce PWA Kit and Managed Runtime.
6. Decide whether headless fits
Start with the customer experience or channel requirement that a custom storefront would solve. Then confirm that the platform APIs and your team can support the complete experience, including the less visible operational work.
- List storefront control needs. Identify what must be custom and which channels need to be supported. Avoid adopting a separate frontend without a concrete requirement.
- Map commerce flows to APIs. Confirm that catalog, cart, customer, and checkout needs can be implemented with the platform’s documented capabilities.
- Inventory integrations. Include content management, search, CRM, inventory, order handling, and any other services the experience depends on. Record who owns each integration and how failures are handled.
- Assign delivery and operations. Determine who builds and deploys the frontend, monitors it, secures it, and maintains its dependencies and API connections.
- Clarify hosting responsibilities. Establish what the commerce vendor or runtime manages and what the merchant team owns.
- Choose the necessary modularity. Decide whether a custom frontend on the existing platform is enough or whether there is a concrete need to assemble capabilities from multiple providers.
- Compare the whole workload. Include engineering time, integration effort, hosting, monitoring, and ongoing maintenance. The reviewed sources do not establish a universal cost or payback figure.
Shopify cautions that headless builds may require substantial work across teams and can be costly and time-consuming. Adobe’s learning material also presents qualifications to consider before adopting headless. Treat those as decision risks to evaluate for your situation, not universal cost estimates. See Shopify’s headless discussion and Adobe’s headless learning resource.
7. A practical implementation checklist
- Document the customer journeys and channels the custom frontend must support.
- Verify the needed catalog, cart, account, and checkout operations against the platform API documentation.
- Define which system owns each piece of data and which service is authoritative.
- Plan frontend hosting, deployment, monitoring, access control, and incident ownership.
- Map integration dependencies and decide how the experience behaves when a service is slow or unavailable.
- Choose how the team will inspect rendered pages across routes and viewports. Screenshot capture can support visual review of storefront changes, alongside functional checks.
- Review whether an incremental custom storefront meets the need before adding more independently operated services.
8. Inspect storefront pages with screenshots
Visual inspection is one practical part of operating a custom storefront: a screenshot lets a developer review what a route rendered at a particular viewport. It does not replace checks of API behavior, checkout correctness, accessibility, or security.
For a do-it-yourself capture, use a browser automation library such as Playwright in your own project, navigate to the storefront URL, wait for the page condition your test requires, and save a screenshot. Configure browser installation, authentication, viewport, and waiting behavior for your own environment; the exact script depends on your app and test setup.
Or skip the browser setup
ScreenshotNeo is a website screenshot API and MCP server from ScreenshotNeo. Its API takes a URL and returns an image or PDF. The request below uses the documented API base; see the ScreenshotNeo API documentation for options and response details.
curl -G "https://api.screenshotneo.com/v1/shot" -d access_key=YOUR_API_KEY --data-urlencode url=https://stripe.com -o shot.webp
import requests
r = requests.get("https://api.screenshotneo.com/v1/shot", params={"access_key": "YOUR_API_KEY", "url": "https://stripe.com"}, timeout=90)
open("shot.webp", "wb").write(r.content)
const q = new URLSearchParams({ access_key: 'YOUR_API_KEY', url: 'https://stripe.com' });
const res = await fetch(`https://api.screenshotneo.com/v1/shot?${q}`);
- Cookie and consent banners are accepted and removed before the shot, along with known newsletter popups and chat widgets; each step can be turned off.
- Bot checks, blank pages, failed loads, timeouts, and cache hits are not billed. Response headers report the page verdict and billing status.
- An MCP server provides
take_screenshot,get_page_info, andcapture_pdftools for Claude, Cursor, and other MCP clients. - The free plan includes 1,000 screenshots per month with no card. Paid plans start at $5 for 3,000 screenshots; every feature is on every plan.
Create a free ScreenshotNeo account for 1,000 screenshots a month with no card.
9. Reliability, performance, and cost considerations
Reliability
Decoupling creates interfaces between independently developed parts. Identify the services each customer journey depends on, how errors are surfaced, and who responds when the frontend or an integration fails. The sources cited here describe architectural patterns and vendor capabilities; they do not establish reliability figures for a particular deployment.
Performance
A custom frontend gives a team control over its presentation layer, but headless architecture alone is not a performance result. Measure the actual storefront and its dependencies under the conditions that matter to your users. No independent performance benchmark is established by the research used for this guide.
Cost and operating effort
Evaluate engineering and coordination time, hosting and runtime responsibilities, integration work, and ongoing maintenance together. Shopify explicitly warns that headless work can become costly and time-consuming. The right comparison is the workload for the specific customer experience against the control and channel capabilities it provides; there is no supported universal project cost or savings estimate here.
10. Troubleshooting questions to resolve early
| Symptom or concern | Likely cause to investigate | Practical next step |
|---|---|---|
| A storefront feature cannot be completed through the API | The platform API may not expose the operation or data the frontend expects. | Check the platform’s current API documentation and validate the required flow before committing to the custom frontend. |
| The custom storefront depends on many separately owned services | The planned composable scope may exceed the team’s integration and operating capacity. | Assign an owner and failure-handling plan to every dependency; reconsider whether a smaller headless scope meets the requirement. |
| Teams disagree about who handles a production issue | Frontend, API, hosting, and vendor responsibilities were not made explicit. | Document ownership, escalation paths, deployment responsibility, and monitoring for each component. |
| A proposed migration is justified by a promised conversion or speed increase | An outcome is being assumed without evidence for this implementation. | State the measurable customer or technical problem first, then evaluate it with an appropriate comparison. Do not treat the architecture pattern itself as proof. |
| The storefront works on one channel but not another | A second touchpoint may need its own frontend behavior, integration, or operational support. | Validate each required channel’s journeys and dependencies independently; shared backend APIs do not create the other experience automatically. |
11. Frequently asked questions
Does headless mean there is no backend?
No. It means the storefront presentation is separated from commerce backend responsibilities and connected through APIs.
Can a business use headless without replacing its commerce platform?
Yes. A custom frontend can use a platform’s commerce APIs while retaining that platform’s backend capabilities.
Is composable commerce the same as headless?
No. Headless describes frontend and backend separation; composable describes a broader modular approach to assembling capabilities.
Does every headless storefront need a separate provider for every service?
No. A headless architecture can retain a platform-provided backend. The number of separate providers depends on the design.
Which architecture should a team choose?
Choose based on the storefront control and channel needs, API coverage, integration burden, and the team’s ability to own delivery and operations. The pattern is useful when its concrete capabilities justify that work.


