Skip to content
Skills Library
Programming · Tool integration

b2c-scapi-shopper

/b2c-scapi-shopper

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 context. Also use when they ask about Shopper API authentication, checkout flows from a frontend app, or performance optimization for API calls — even if they just say "search products from my PWA" or "build a headless checkout".

Licence
Apache-2.0
Last repository change
23.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
6
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 23.10.2026, without references to retired models or APIs.

Licence

Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.

What it does and when to use it

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 context. Also use when they ask about Shopper API authentication, checkout flows from a frontend app, or performance optimization for API calls — even if they just say "search products from my PWA" or "build a headless checkout".

Triggers from the description

search products from my PWAbuild a headless checkout
Original author description

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 context. Also use when they ask about Shopper API authentication, checkout flows from a frontend app, or performance optimization for API calls — even if they just say "search products from my PWA" or "build a headless checkout".

How it works

  1. Tool choice
  2. Integration essentials
  3. Conditional references
Original SKILL.md headings · 53 lines, 329 words
SKILL.md preview
---
name: b2c-scapi-shopper
description: 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 context. Also use when they ask about Shopper API authentication, checkout flows from a frontend app, or performance optimization for API calls — even if they just say "search products from my PWA" or "build a headless checkout".
---

# 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:
- Read `skill://mcp/b2c-mcp-scapi/SKILL.md` once through resources or `skills_read` before
  code-mode tools; pass `skillRead: true`.
- `scapi_search` with `authType: "shopper"` discovers bundled contracts offline.
  Find method/path/operationId first, then selected inputs, response fields, and
  security. Mixed Admin/Shopper operations can appear in either filter.
- Shopper execution is unsupported in `scapi_execute`; adding a SLAS client
  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_schemas_list` retrieves live tenant contracts and custom attributes;
  `scapi_custom_apis_get_status` checks custom registration. Code mode does not
  execute custom APIs.
- `config_inspect` reports configured values with masking. `docs_search`/`docs_read`
  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

- Reuse configured shortCode, organizationId, and siteId; do not invent identifiers.
- Shopper authentication uses SLAS guest/registered flows and client scopes;
  Account Manager credentials are not a substitute. Keep private-client secrets
  and token exchange on the backend.
- Discover the contract for the selected API version. Examples are illustrative;
  verify version-specific behavior and limits in official docs.
- Preserve basket/order state and handle errors explicitly. Page/filter responses
  and return only fields needed by the next operation.
- For headless payment authorization, inspect
  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

- [Client examples](references/CLIENT-EXAMPLES.md): implementing auth and API calls.
- [Checkout](references/CHECKOUT-FLOW.md): basket-to-order workflow.
- [Common patterns](references/COMMON-PATTERNS.md): errors, pagination, field selection.
- [Scopes](references/SCOPES.md): Shopper grants by family.
- `b2c-slas` skill: CLI client management.
- `b2c-slas-auth-patterns` skill: OTP, passkeys, session bridge.
- Official docs: `commerce-api/use-shopper-api`, `commerce-api/slas`,
  `commerce-api/work-with-baskets-orders`, `commerce-api/shopper-context-best-practices`,
  `commerce-api/auth-z-scope-catalog`, `commerce-api/performance`.
Files in this package (6)
  • SKILL.md 3 KB
  • evals/trigger-evals.json 2 KB
  • references/CHECKOUT-FLOW.md 14 KB
  • references/CLIENT-EXAMPLES.md 11 KB
  • references/COMMON-PATTERNS.md 10 KB
  • references/SCOPES.md 8 KB

Versions

The database has no other skills named b2c-scapi-shopper.

Database snapshot: 13.11.2026 · package version a9ba607b362c (SHA-256 digest of the entire package)

Downloads in the last 30 days: 3 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100sf-b2c-scapi
    Build with Salesforce Commerce API (SCAPI) — Shopper APIs (Products, Search, Baskets, Orders, Customers), SLAS authentication, Commerce SDK for Node.js, rate limiting, pagination, and headless commerce patterns. This is the primary B2C API. Use when building headless storefronts or API integrations.
  • 100salesforce-headless
    Use when building headless or composable storefronts on Salesforce B2C Commerce Cloud, integrating Salesforce Commerce APIs (SCAPI), developing with PWA Kit or Composable Storefront, migrating from SFRA to headless, implementing Shopper APIs, or deploying to Managed Runtime…
  • 100b2c-slas
    Create, update, and manage SLAS (Shopper Login and API Access Service) clients using the b2c CLI. Use this skill whenever the user needs to provision a SLAS client, update OAuth scopes, rotate client secrets, get a shopper access token, or configure shopper authentication for…
  • 100b2c-custom-api-development
    Develop Custom SCAPI REST endpoints with api.json routes, schema.yaml definitions, and OAuth scope configuration. Use this skill whenever the user needs to create a custom API on the Commerce platform, define OpenAPI 3.0 schemas for request/response, structure the rest-apis…
  • 100bc-headless
    Build headless commerce with BigCommerce — Catalyst (Next.js reference storefront), GraphQL Storefront API, server-side APIs, embedded checkout, and headless architecture patterns. Use when building decoupled storefronts or integrating BigCommerce as a headless backend.
  • 95headless-ecommerce
    Use this skill when the user says 'headless commerce', 'shopify hydrogen', 'storefront api', 'oxygen', 'composable commerce', 'headless shopify', 'commerce frontend caching'. It designs headless storefronts (Shopify Hydrogen/Storefront API and other commerce APIs): data…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.