Headless commerce
Headless commerce is an ecommerce architecture where the frontend (what the customer sees) and the backend (product data, orders, and payment) are separated and communicate via APIs. It gives you complete design freedom.
What is headless commerce?
In a traditional ecommerce platform, the frontend and backend are tightly coupled: the platform controls both the visual layer (HTML, CSS, and templates) and the functional layer (products, cart, and payment). In headless commerce, the two layers are separated. The backend delivers data via APIs, and the frontend can be built with any technology: React, Vue.js, Next.js, a mobile app, or even a physical kiosk.
Traditional vs. headless
- Traditional (monolithic): Backend and frontend in one system. Easier to get started and faster to set up, but with limited flexibility in design and performance.
- Headless: The backend delivers data via an API. The frontend is built separately. Complete design freedom, but it requires more development and technical know-how.
Benefits of headless commerce
- Design freedom: No template limitations. You can create exactly the experience you want.
- Performance: Frontends built with modern JavaScript frameworks can be extremely fast (static site generation and edge rendering).
- Omnichannel: The same backend delivers data to your online store, mobile app, POS, IoT devices, and more.
- Flexible tech stack: The frontend team can use the latest technologies independently of the backend.
- Scalability: The frontend and backend can be scaled independently.
Drawbacks of headless commerce
- Development complexity: You have to build and maintain a separate frontend, which requires skilled developers.
- Higher costs: More development time and ongoing maintenance compared to a traditional platform.
- No out-of-the-box frontend: You start from scratch with design and functionality.
- Split responsibility: Errors have to be debugged across two systems, the frontend and the backend.
When does headless make sense?
Headless commerce is relevant when:
- You have a dedicated development team that can build and maintain a custom frontend.
- You have specific performance requirements that a traditional platform can't meet.
- You need to deliver a consistent experience across many channels (web, app, and kiosk).
- You have a unique design that can't be realized on a template-based platform.
For most small and medium-sized online stores, a traditional platform like Shoporama, with flexible themes and good performance, is the most cost-effective solution.
API-driven ecommerce
Whether you choose full headless or a traditional platform, API access is valuable. With a REST API, you can build integrations, automate processes, and pull data into third-party systems. Shoporama offers a REST API that gives access to products, orders, customers, and more, so you have the option to build headless or hybrid solutions if the need arises.
How to do it in Shoporama
Guides that show the term in practice
REST API: authentication, endpoints, and the API log
A complete guide to Shoporama's REST API: authentication, API keys and user roles, all endpoints, examples, the...
Washington theme: set up the headless theme for your store
Washington is a minimalist headless theme where the whole store runs as a single app in the browser. See how to...
REST API documentation
A link to the documentation for Shoporama's REST API, which you use to integrate your store with external systems.
Build a custom storefront on the Shoporama headless API
Developer guide to building your own storefront on the store's /api with products, Page designer pages, cart,...
We know online marketing at Shoporama
We have worked with online marketing ourselves for decades. As the only e-commerce platform in Denmark, we have spoken several times at conferences such as Marketingcamp, SEOday, Shopcamp, Digital Marketing, E-commerce manageren, Ehandelsdagen, Web Analytics Wednesday, and many more.