B2c scapi shopper

From SalesforceCommerceCloud/b2c-developer-tooling · View interactive version

B2c scapi shopper is an AI agent skill from the GitHub repository SalesforceCommerceCloud/b2c-developer-tooling. Call Shopper Commerce APIs (SCAPI) from headless storefronts and composable commerce apps. Use this skill whenever the user is building with PWA Kit, Storefront Next (SFNext), or a headless frontend and needs to search products, manage baskets, submit orders, access customer data, or set shopper con

How to use this skill

Skill file

Shopper Commerce APIs

Build storefront product, basket, checkout, customer, and context flows with SCAPI.

For backend management use the b2c-scapi-admin skill.

Tool choice

When B2C MCP is available:

code-mode tools; pass skillRead: true.

Find method/path/operationId first, then selected inputs, response fields, and

security. Mixed Admin/Shopper operations can appear in either filter.

cannot enable it. Execute storefront flows through the application's Shopper

SDK/client with the appropriate SLAS token flow. Prefer dedicated tools where available.

scapi_custom_apis_get_status checks custom registration. Code mode does not

execute custom APIs.

answer platform semantics, authentication, and limits; avoid duplicate contract reads.

CLI alternatives: b2c scapi schemas list,

b2c scapi schemas get <family> <name> <version>, and b2c setup inspect.

These schema commands use live Schemas API access; MCP discovery is offline.

Integration essentials

Account Manager credentials are not a substitute. Keep private-client secrets

and token exchange on the backend.

verify version-specific behavior and limits in official docs.

and return only fields needed by the next operation.

the order-PI hooks in the b2c-hooks skill ("Headless Order Payment") and the

order lifecycle in the b2c-ordering skill before choosing a placement flow.

Conditional references

commerce-api/work-with-baskets-orders, commerce-api/shopper-context-best-practices,

commerce-api/auth-z-scope-catalog, commerce-api/performance.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.