b2c-scapi-schemas
Browse and retrieve SCAPI OpenAPI schema specifications. Use this skill whenever the user needs to list available SCAPI APIs, inspect endpoint paths or request/response shapes, explore data models for products or orders, check which fields an API returns, or understand SCAPI versioning. Also use when looking up API details before building an integration -- even if they just say 'what fields does the product API return' or 'show me the SCAPI endpoints'.
How do I install this agent skill?
npx skills add https://github.com/salesforcecommercecloud/b2c-developer-tooling --skill b2c-scapi-schemasIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The skill is safe. It provides instructions for using the Salesforce B2C CLI tool to browse and retrieve API schemas.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
- Runlayerwarn
1/1 file flagged
What does this agent skill do?
B2C SCAPI Schemas Skill
Browse standard or tenant-specific SCAPI OpenAPI contracts.
Tool choice
When B2C MCP is available, prefer offline scapi_search for standard Admin and
Shopper contracts. Read skill://mcp/scapi/SKILL.md via resource or skills_read
first; pass skillRead: true. Discover method/path/operationId, then selected
inputs and fields. No credentials or live Schemas API access needed.
Use scapi_schemas_list for live schemas, custom attributes, and custom APIs.
For tenant fields, supply API family/name/version and includeSchemas: true.
Custom-property expansion defaults to true; expandAll: true preserves full definitions.
For large schemas, fetch/filter through code mode as described in the MCP SCAPI skill.
Use scapi_custom_apis_get_status for registration status. Live schema access needs
sfcc.scapi-schemas. Prefer a dedicated task tool for execution, otherwise
scapi_execute supports Admin JSON calls with configured auth/scopes. For custom
Admin endpoints, fetch the live contract through scapi.request in each program
before calling it; follow the MCP SCAPI skill. Shopper and binary execution are
unsupported. Use docs tools for semantics
and limits rather than duplicating contract discovery.
For CLI work, use b2c scapi schemas list and
b2c scapi schemas get <family> <name> <version>; both use live access.
CLI get expands custom properties by default; --no-expand-custom-properties
requests the standard contract. MCP also defaults to expansion; disable it with
expandCustomProperties: false. Known custom fields can be sent through standard
Admin code-mode requests without a schema read or offline refresh.
config_inspect is the masked MCP equivalent of b2c setup inspect.
Read CLI examples for filters, selective expansion,
custom properties, and file output. There is no CLI code-mode equivalent.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli scapi schemas list).
Configuration
Values like tenantId, shortCode, clientId, and clientSecret resolve from dw.json / SFCC_* env vars / the active instance / configuration plugins. Examples below show minimal usage; add flags only to override configured values — passing --client-id/--client-secret/--tenant-id/--short-code is usually unnecessary. If a required value is missing, the CLI emits an actionable error pointing at the flag, env var, and config key.
Run b2c setup inspect to see the resolved configuration and which source provided each value (--json for scripting; secrets stay masked by default). For precedence rules and troubleshooting, see the b2c-cli:b2c-config skill.
Tenant ID vs. Organization ID
The tenant ID identifies your B2C Commerce instance for SCAPI calls. It is not the same as the organization ID:
- Tenant ID:
zzxy_prd(thetenantIdvalue in dw.json, or--tenant-idoverride) - Organization ID:
f_ecom_zzxy_prd(used in SCAPI URLs, hasf_ecom_prefix)
Deriving Tenant ID from Hostname
For sandbox instances, derive the tenant ID from the hostname by replacing hyphens with underscores:
| Hostname | Tenant ID |
|---|---|
zzpq-013.dx.commercecloud.salesforce.com | zzpq_013 |
zzxy-001.dx.commercecloud.salesforce.com | zzxy_001 |
abcd-dev.dx.commercecloud.salesforce.com | abcd_dev |
For production instances, use your realm and instance identifier (e.g., zzxy_prd).
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/salesforcecommercecloud/b2c-developer-tooling/b2c-scapi-schemas">View b2c-scapi-schemas on skillZs</a>