b2c-scapi-shopper

Consume Salesforce B2C Shopper APIs with SLAS authentication for headless storefronts.

51|16|Updated Oct 31, 2025
One-click install
npx skills add https://github.com/SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-scapi-shopper
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: b2c-scapi-shopper
Source: https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/tree/main/skills/b2c/skills/b2c-scapi-shopper
Command: npx skills add https://github.com/SalesforceCommerceCloud/b2c-developer-tooling --skill b2c-scapi-shopper

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers leverage Salesforce B2C Shopper APIs (SCAPI) to build headless storefronts by providing ready-made guidance on consuming products, search, baskets, orders, and customer data via SCAPI, with SLAS authentication, context management, and performance considerations.

Core Features & Use Cases

  • Consume standard Shopper APIs (SCAPI) for frontend commerce applications such as PWA Kit and composable storefronts.
  • Support authentication via SLAS, including guest and authenticated shopper flows, and Shopper Context API usage.
  • Demonstrate common flows: product retrieval, search, baskets, checkout, and customer data access with recommended best practices.
  • Real-world use: build a storefront that lists products, adds items to a basket, and places an order using SCAPI endpoints.

Quick Start

Ask the AI to fetch product details from the SCAPI shopper-products API using a valid SLAS token and siteId example.

Frequently Asked Questions about b2c-scapi-shopper

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate SCAPI requests for a headless storefront using SLAS?

Consume SCAPI for headless storefronts by accessing standard Shopper APIs to retrieve products, search catalogs, manage baskets, and process orders. Use SLAS tokens and configured scopes to authenticate shopper context and enable low-latency PWA builds.

How do I manage baskets and orders with the Salesforce Shopper API?

Authenticate SCAPI requests for a headless storefront by obtaining SLAS tokens to manage guest and authenticated shopper flows. You must configure the correct API scopes and shopper context to securely access endpoints.

Does the SCAPI Shopper API support composable storefront architectures?

Yes, the SCAPI Shopper API supports composable storefront architectures and PWA Kit implementations. It provides low-latency API access to products, catalogs, baskets, and orders required for headless commerce builds.

How do I fetch product details from the SCAPI shopper-products endpoint?

Fetch product details from the SCAPI shopper-products endpoint by requesting the API with a valid SLAS token and a specific siteId. This returns the catalog data needed to build storefront product pages.

What are the limitations when handling secure context for SCAPI workflows?

Limitations when handling secure context for SCAPI workflows include the strict requirement for properly configured scopes and valid SLAS tokens. Without these prerequisites, shopper APIs cannot function or return data securely.