Take promotions to the next level with our new Rules Engine.

Ecommerce platform for Sanity CMS

Commerce Layer is the fastest, most flexible, developer-friendly commerce platform to use with Sanity CMS. Schedule some time with our developer team and we'll build a Commerce Layer + Sanity website with you.

Sanity Commerce Plugin

The same philosophy at the core

Sanity’s developer-first philosophy aligns closely with Commerce Layer. Both platforms strive to offer the most flexible, unopinionated solutions designed with developers in mind. Sanity introduces a blank canvas through its Studio code editor, enabling developers to model content freely. Similarly, Commerce Layer offers a core API that supports comprehensive CRUD operations, allowing you to manipulate commerce data to fit your exact requirements.

Why Sanity and Commerce Layer work so well together?

  • Sanity lets you build a product catalog in seconds
    Commerce Layer focuses on commerce-specific functionality and does not provide a product catalog. Sanity Studio fills the gap by allowing the creation of a content model that can include a detailed product catalog. This complementary capability makes Sanity and Commerce Layer an ideal partnership for developing a bespoke headless commerce site.
  • Separating content and commerce data
    Commerce Layer specializes in handling transactional data such as pricing, subscriptions, promotions, order management, and inventory. Sanity excels at managing content data. This is the cleanest separation of concerns imaginable.
  • Headless at the core
    Both platforms are built with an API-first principle, facilitating seamless data integration across any frontend. Sanity's webhook technology enables automatic site updates through continuous integration whenever content is modified. Concurrently, the Commerce Layer API ensures your commerce data is displayed in near real-time, reflecting the latest prices, stock levels, and promotions.
  • Developer ethos
    Sanity's approach augments traditional UIs with a code editor, underscoring its developer-centric ethos. Commerce Layer also offers tools that empower developers to produce potent and efficient code.
Ecommerce platform for Sanity

Get started with Commerce Layer and Sanity in 10 steps

Commerce Layer + Sanity is a powerful stack for multi-channel ecommerce. The combination of these two platforms unites content delivery and commerce functionality for any channel including web, mobile apps, voice assistants, in-store devices, and more.

  1. Sign up with Sanity.
  2. Utilize the Sanity Commerce plugin by Commerce Layer to quickly create your product catalog model.
  3. Model your content using Sanity Studio. Sanity provides comprehensive documentation to build the content model that works for you.
  4. Populate Sanity with your products and enrich them with content.
  5. Sign up for Commerce Layer and configure your products, adding commerce details like prices and promotions. Products are identified across both platforms with the SKU code.
  6. Choose your frontend technology.
  7. Use Sanity’s API to fetch the product content from the CMS in different parts of your website, for example the product page.
  8. Use Commerce Layer’s API or React components to fetch commerce information, using the SKU code from the CMS. You can also add “AddToCart” buttons and other components of the commerce journey.
  9. After fetching the content, use your frontend technology to render it on the webpage.
  10. Deploy your website to your chosen hosting platform.
5 reasons to handle product descriptions in the CMS instead of the commerce engine

They run Sanity and Commerce Layer