What is headless commerce?

Headless commerce is an e-commerce architecture in which the storefront is a separate application that talks to the commerce backend (catalogue, cart, checkout, orders) only through APIs.

Also called headless e-commerce, headless ecommerce, headless storefrontUpdated

In a traditional online store, the platform both runs the business logic and renders the pages, through themes and templates. Headless commerce cuts that link. The commerce engine becomes the "body": products, prices, inventory, carts, checkout and orders. The "head", meaning the website, app or any other screen, is built separately and calls the engine's APIs.

How it works

A typical headless setup has:

  • Commerce backend: Shopify (through its Storefront API), commercetools, BigCommerce, Medusa, Saleor or a custom service.
  • Front end: often a React framework such as Next.js, or Shopify's Hydrogen, hosted on a CDN or edge platform.
  • Headless CMS for editorial content, such as landing pages, lookbooks and blogs (see Strapi vs Sanity vs Payload vs Contentful).
  • Other services joined by APIs: search, reviews, a PIM for product data, an OMS for fulfilment. The same backend can serve the website, a mobile app, a kiosk and a marketplace feed. "Composable commerce" and MACH (microservices, API-first, cloud-native, headless) push the idea further, replacing even the backend with separate best-of-breed services.

Example: a headless Shopify store

A D2C skincare brand in India keeps Shopify for catalogue, orders and payments, and builds a Next.js storefront. A product page fetches its data with a GraphQL query to the Storefront API:

query Product($handle: String!) {
  product(handle: $handle) {
    title
    variants(first: 5) {
      nodes { id title availableForSale price { amount currencyCode } }
    }
  }
}

When the shopper adds to bag, the front end calls the cartCreate or cartLinesAdd mutation. At checkout it sends the shopper to the cart's checkoutUrl, so payment still runs on Shopify's checkout. The brand gets its own design and page speed, and keeps Shopify's payments, apps and admin. In return, it now runs a front-end application with its own hosting, releases and monitoring.

When headless pays off

  • Page speed and Core Web Vitals on mid-range Android phones are a measurable conversion problem.
  • The brand experience needs layouts that themes can't deliver.
  • You sell through several channels, such as web, app, in-store screens and marketplaces, from one backend.
  • Content and commerce need to blend closely, as in editorial-led brands.

When it doesn't

  • A small catalogue and standard checkout that a good theme already handles.
  • No engineering team or partner to maintain a front end.
  • Theme apps that need replacing: many Shopify apps inject into themes and don't work headless without extra build work.
  • The hope that headless will fix slow pages caused by heavy images and third-party scripts. Those follow you.

Headless vs traditional

Traditional (themed) Headless
Launch time Weeks Months
Design freedom Within the theme Full
Who maintains the front end Platform and theme Your team
Apps and plugins Plug in Often rebuilt or called by API
Our Shopify vs WooCommerce vs headless vs custom guide helps decide whether headless fits your stage, and we build headless storefronts for e-commerce brands.

Any idea in mind? Let's make it real.

Tell us what you're building. You'll hear back from an engineer, not a sales team, usually within one working day.

Book a 30-min call