SFCC offers two APIs are: Open Commerce API (OCAPI) and Commerce Cloud API (CCAPI) which is in beta.
The Open Commerce API (OCAPI) is a RESTful API used by SFCC which consists of three component APIs:
OCAPI is a fairly robust API, however if your site is still on Pipelines architecture you may have a harder time integrating your existing customizations with OCAPI. In those cases use synthetic APIs and migrate that functionality to OCAPI at a later date. CCAPI layer in beta seems promising, but it is too early to judge the extent in which it will support speedy headless storefronts.
Layer0 lets you deliver your Next.js storefront on Salesforce Commerce Cloud in sub-seconds. The average website on Layer0 sees median speeds of 320ms loads, as measured by Largest Contentful Paint (LCP). But Layer0 is much more than a website accelerator. It is a Jamstack platform for eCommerce. Layer0 makes websites faster for users and simpler for frontend developers. The platform was built specifically for large-scale, database-driven websites such as eCommerce and Travel and includes the following benefits:
With Layer0, your Next.js SFCC store will run in sub-second speeds and your developers will be empowered to control edge caching and reduce rework using the various developer productivity tools that come with the platform.
Check out Shoe Carnival, a sub-second SFCC storefront on Layer0. The shoe retailer has reduced page loads by 92%, outperforms 98% of leading websites, and increased revenue 40% on Layer0.
Layer0 is a main contributor to React Storefront (RSF), an open-source PWA framework based on Next.js. The eCommerce framework powers over billion dollars in eCommerce revenue a year. Try it out if you are in the process of building a modern frontend for an eCommerce site. Or if you're already using Next.js, use the this guide to deploy your Next.js application on Layer0 and get sub-second loads in as little as 1 hour of work.
"Bringing our site to Layer0...helps us keep our top ranking position in search engine result pages."
“Everyone has commented on how blazing fast our site is, which is thanks to Layer0. It was one of the fastest implementations we’ve ever seen”
"We want to be able to fail fast, and [Layer0’s] split testing is a very important piece for us to do this."
“The way you factored in A/B testing is better than any tool I have seen.”