b2c-scapi-custom
B2C SCAPI Custom APIs Skill
Use the b2c CLI plugin to manage SCAPI Custom API endpoints and check their registration status.
When B2C MCP is available, prefer scapi_custom_apis_get_status for registration
and scapi_schemas_list for live contracts. For Admin custom API execution, read
skill://mcp/b2c-mcp-scapi/SKILL.md; fetch the contract through scapi.request in the
program before calling its endpoints. Schema reads need sfcc.scapi-schemas;
execution needs the declared c_* scope. Shopper execution is unsupported.
Tip: If
b2cis not installed globally, usenpx @salesforce/b2c-cliinstead (e.g.,npx @salesforce/b2c-cli scapi custom status).
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.