Suggested answer

SCAPI (Salesforce Commerce API) is the next-generation REST API for B2C Commerce, specifically designed for headless storefronts. Key differences from OCAPI include:

1. Modern authentication — SCAPI uses SLAS (Shopper Login and API Access Service) with OAuth 2.0 PKCE flows, replacing OCAPI's session-based shopper authentication
2. Decomposed API families — Shopper Products, Shopper Baskets, Shopper Orders, Shopper Login, Shopper Search — each independently versioned
3. OpenAPI specification — SCAPI ships with a full OpenAPI 3.0 spec, enabling SDK generation and better developer tooling
4. Commerce SDK — Salesforce provides official JavaScript/TypeScript SDKs for SCAPI, simplifying headless development

For new headless implementations, SCAPI is the recommended approach. OCAPI remains supported for existing integrations but receives fewer enhancements.

Practice content for interview preparation; not an official vendor answer. Verify details against current product documentation.

Community comments (0)

No comments yet.

Sign in or create a free account to add a comment. Comments are moderated before they appear.

Plain text only, 3–2000 characters. A moderator reviews every comment before it is published.