What problem does it solve?
This Skill guides engineers to integrate Salesforce Commerce Cloud's Shopper (SCAPI) and OCAPI Data APIs so headless storefronts, PWAs, mobile apps, and backend services can access catalog, basket, checkout, and admin order operations reliably and securely.
Core Features & Use Cases
- Catalog & Search: Use SCAPI Shopper search and product endpoints for headless product discovery with expand/select controls to limit payloads.
- Authentication & Session Management: Implement SLAS PKCE guest/customer flows, proactive refresh, and secure httpOnly cookie handling for session continuity and cart merge.
- Cart, Checkout & Orders: Manage baskets and submit orders via Shopper Baskets and Shopper Orders, and use OCAPI Data API with client_credentials for server-side order retrieval and updates.
- Admin & Data Operations: Use OCAPI Data API for product import/upsert, order status updates, and other admin tasks with environment-driven credentials and idempotent submission.
- Resilience & Safety: Employ token lifecycle management, Idempotency-Key for order submission, and exponential backoff and caching for rate-limit resilience.
- Use Case Example: Implement a Next.js BFF that obtains a SLAS guest token, performs product search for a mobile app, creates a basket, and later merges it into a customer session on login.
Quick Start
Use this skill to obtain a SLAS guest token, search the catalog for "running shoes" with your SFCC site ID, create a basket, and then implement a login flow that merges the guest basket into the customer's basket.