sfnext-custom-apis

Installation
SKILL.md

Custom APIs in Storefront Next

This skill covers the end-to-end workflow for implementing and consuming custom SCAPI endpoints from a Storefront Next project.

Overview

Custom APIs let you define your own REST endpoints on B2C Commerce. In a Storefront Next project, you call these from loaders and actions just like standard SCAPI clients — with full type safety.

End-to-End Workflow

Create custom API    →  Deploy & register  →  Add typed client  →  Discover schema  →  Call from loader
(cartridge)             (b2c code deploy)     (sfnext scapi add)   (scapi schemas)     (createApiClients)

Step 1: Create the Custom API

A custom API consists of three files in a cartridge:

Installs
2
GitHub Stars
53
First Seen
Aug 14, 2026
sfnext-custom-apis — salesforcecommercecloud/b2c-developer-tooling