sfnext-scapi
Use and extend SCAPI clients in a Storefront Next project: createApiClients, the @/scapi type barrel, typing c_* custom attributes by overriding a built-in client, and adding your own custom API end to end with b2c sfnext scapi (add, available, list, remove). Use for "clients.shopperProducts", "c_ attribute is not typed", "sfnext scapi add", "add custom API to the storefront", src/scapi/ generated files, custom-clients.ts, calling a loyalty/notify-style custom endpoint from a loader or action, useScapiFetcher, personalized=none for custom clients, or 404 from a custom endpoint. Do not use for writing the cartridge/schema.yaml itself (use b2c:b2c-custom-api-development), endpoint registration status (use b2c-cli:b2c-scapi-custom), loader/caching strategy (use storefront-next:sfnext-data-fetching), or login/session code (use storefront-next:sfnext-authentication).
Pinned to revision 0d6b966d3aa9, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/sfnext-scapi/SKILL.md
- skills/sfnext-scapi/evals/trigger-evals.json
- skills/sfnext-scapi/references/WORKED-EXAMPLE.md
Every link opens the file at its source, pinned to the revision this page describes.