Skip to content
Neo Beyond Scale
E-commerce

Headless e-commerce explained: what it is and when it is worth it

Headless e-commerce is an online store architecture in which the storefront customers see is built and hosted separately from the commerce engine that holds products, cart, checkout and orders. The two communicate through an API, so the front end can be designed freely and the same engine can serve several channels.

By Amin6 min read

"Headless" has become one of the most repeated words in e-commerce, often by people selling it. The idea is simple and genuinely useful. It is also more expensive and more work than a theme-based store, and many stores gain nothing from it.

This article explains what headless commerce is, what it actually buys you, what it costs, which platforms offer it, and how to tell whether your store should go headless. It is the question our e-commerce development projects often start with.

What "headless" means

A traditional online store is one system. The platform (Shopify, WooCommerce, Magento and others) holds the products, the cart, the checkout and the orders, and it also renders the pages your customers see, through a theme.

A headless store separates the two. The commerce platform keeps the products, inventory, cart and orders, and exposes them through an API. A separate front end, built with a framework such as Next.js, fetches that data and renders the store. The "head" (the storefront) is detached from the "body" (the commerce engine).

In practice, the commerce back end might be Shopify through its Storefront API, an open-source engine such as Medusa or Saleor, or an enterprise platform such as commercetools. The front end is custom code hosted on its own.

Theme-based storeOne platform renders the pages through a theme and also runs the cart, checkout, products and orders.Theme-based storeOne platformTheme: the pages customers seeCart and checkoutProducts, stock, ordersHeadless storeA separate front end renders the pages and talks through an API to the commerce engine, which runs cart, checkout, products and orders. The same API can also feed an app or a CMS-driven page.Headless storeYour front end (e.g. Next.js)APICommerce engineCart and checkoutProducts, stock, ordersCMS contentApp, kiosk, B2B
Theme-based vs headless: where the storefront lives.

What you gain

Speed

A custom front end can be built for speed from the start: pages pre-rendered, images sized per device, no theme scripts and app widgets loading on every page. Faster pages convert better and rank better, especially on phones. Themes can be fast too, but each app added tends to slow them down, and a headless front end avoids that accumulation.

Design freedom

A theme gives you a structure to customise. A headless front end gives you a blank page. Editorial layouts, product configurators, unusual navigation, rich storytelling around products: all are easier when the front end is yours.

Content and commerce together

Many brands sell through content: guides, lookbooks, routines, recipes. A headless front end can pull products from the commerce engine and content from a CMS into the same page, without forcing articles into a blog template or products into a page builder.

One back end, several fronts

The same commerce API can feed the website, a mobile app, an in-store kiosk or a B2B portal. If you sell through several channels, that consistency is valuable.

What it costs

More to build

You are building the storefront yourself: product pages, collections, search, cart, account pages, all the states and edge cases a theme gives you for free. That is a real project, and it is the main reason headless costs more upfront. Our e-commerce website cost guide explains what moves the price.

More to maintain

Two systems instead of one: the commerce platform and your front end, plus a CMS if you add one. Someone has to keep them updated, monitor them and fix the integration when an API changes.

Apps stop working as plug-ins

On a theme-based store, installing an app often adds a widget to your pages automatically: reviews, upsells, loyalty, wishlists. On a headless store, those widgets do not appear by themselves. Each app's features must be integrated into your front end through its API, if it has one. Some apps simply do not support headless.

Some platform features need extra work

Platform checkouts, previews in the admin, theme-based editing by your marketing team: some of this keeps working, some needs rebuilding or replacing. Check each feature you rely on before deciding.

When headless is worth it

Headless tends to pay off when several of these are true:

  • Speed is costing you. Your store is slow on phones and you have already removed what you can from the theme.
  • The brand needs a storefront a theme cannot carry. Editorial design, configurators, rich product storytelling.
  • Content drives sales. You publish guides, lookbooks or recipes and want them shoppable.
  • You sell on several channels and want one source of products and orders.
  • You have the budget and someone to maintain it, in-house or through a partner.

When it is not

Headless is usually the wrong choice when:

  • Your catalogue is small and your theme already performs well.
  • You rely on many apps that inject features into your pages.
  • Your team edits layouts often in the theme editor and has no developer.
  • The budget is tight and the main goal is to start selling.

In those cases, a well-built theme on a hosted platform is faster to launch and cheaper to run. We set out the full trade-off in custom e-commerce vs Shopify.

Headless e-commerce platforms

A headless store needs a commerce engine with a complete API. The main options fall into three groups. This is an overview, not a ranking: we have no partnership or affiliate deal with any of them, and features and plans change, so check each vendor's current documentation.

PlatformKindWhat to know
ShopifyHosted platform with a Storefront APIThe most common way to go headless while keeping Shopify's admin and checkout. Shopify also has its own React framework, Hydrogen.
BigCommerceHosted platform with APIsOffers its catalogue, cart and checkout through APIs for a custom front end.
Adobe Commerce (Magento)Platform, self-hosted or cloudExposes a GraphQL API; usually chosen by larger stores already on Magento.
commercetoolsAPI-only, enterpriseBuilt headless from the start; aimed at large retailers with their own development teams.
MedusaOpen source (Node.js)You host it yourself and can change its code; suited to stores with custom commerce rules.
SaleorOpen source (GraphQL API)Self-hosted or as a managed cloud service; API-first by design.

How to choose between them comes down to three questions: who will host and update the engine (a hosted platform does it for you, open source does not), how far your commerce rules differ from the standard (the further, the more an open-source engine or a fully custom store helps), and which apps or integrations you cannot do without.

Headless is not the only alternative to a theme

There is a common confusion here. "Headless" and "custom" are not the same thing.

  • Headless on a platform: Shopify or another engine runs the commerce; you build the front end.
  • Fully custom: the store, checkout and back office are all built for you, with no hosted platform underneath.
  • Theme with custom parts: you stay on the platform's theme and build custom sections, apps or a custom back office around it.

A fully custom store makes sense when the problem is not the storefront but the commerce logic itself: payment on delivery, complex bundles, made-to-order products, delivery zones and cut-offs, or a back office built around how your team ships. Headless on a platform does not fix those, because the platform's rules still apply underneath.

Common questions

Is a headless store better for SEO?

It can be, mostly because it can be faster and gives full control over page structure, titles and structured data. It can also be worse, if the front end is built in a way search engines struggle to read. A headless storefront should render its pages on the server or ahead of time, not only in the browser.

Can our team still edit pages without a developer?

Yes, if a content management system is part of the build. Product data stays in the commerce platform; landing pages, banners and articles are edited in the CMS. Layouts outside the prepared templates still need a developer.

Can we go headless gradually?

Sometimes. Some stores start by moving only the content pages or a campaign section to the new front end, keeping the theme for the rest. It reduces risk, but running two front ends at once adds its own complexity, so plan an end date.

Does headless make the checkout faster too?

Not necessarily. On many platforms, the checkout stays on the platform even when the storefront is headless, so its speed and design are still the platform's. If checkout is your real problem, look at the commerce engine rather than the front end.

Questions to ask before going headless

  1. What exactly is the current store failing to do, and would a new front end fix it?
  2. Which apps do we rely on, and do they work headless?
  3. Who will maintain two systems after launch?
  4. Does our marketing team need to edit layouts, and how will they do it?
  5. Is the problem the front end, or the commerce logic underneath?

If the answers point to the front end, headless may well be right. If they point to checkout, catalogue or operations, look at a custom store or a custom back office instead. Either way, our e-commerce development work starts by answering these questions with you before anything is built. If you are moving off a platform entirely, migrating from Shopify covers what moves and what does not.