Skip to content
View as Markdown
View as Markdown

SCAPI Schemas

MCP tools for discovering and retrieving SCAPI schemas. Available in the SCAPI, PWAV3, and STOREFRONTNEXT toolsets (SCAPI is always enabled).

scapi_schemas_list

Browse available SCAPI schemas (list mode) or fetch complete OpenAPI specifications (fetch mode). Works with standard SCAPI (Shop/Admin/Shopper) and custom APIs.

Authentication

Requires OAuth credentials with sfcc.scapi-schemas scope. See B2C Credentials for complete details. For scope configuration, see Configuring Scopes.

Configuration priority: Flags → Environment variables → dw.json config file

Parameters

ParameterTypeRequiredDescription
apiFamilystringNoFilter by API family (e.g., "shopper", "product", "checkout", "custom"). Custom APIs use "custom".
apiNamestringNoFilter by API name (e.g., "shopper-products", "shopper-baskets").
apiVersionstringNoFilter by API version (e.g., "v1", "v2").
status"current" | "deprecated"NoFilter by schema status. Only works in list mode.
includeSchemasbooleanNoFetch full OpenAPI schema. Requires all three: apiFamily, apiName, and apiVersion.
expandAllbooleanNoReturn the full schema without collapsing. Requires includeSchemas: true.

List mode: omit includeSchemas or any identifier to browse available schemas.
Fetch mode: set includeSchemas: true and provide all three identifiers (apiFamily, apiName, apiVersion).

Returns (list mode): {schemas, total, availableApiFamilies, availableApiNames, availableApiVersions, timestamp}.
Returns (fetch mode): Full OpenAPI schema specification (JSON). Use expandAll: true to get the complete schema without collapsing.

Usage

List all available schemas:

List all available SCAPI schemas.

Fetch a specific schema:

Get the OpenAPI schema for shopper-baskets v1.

Discover custom APIs:

List custom API definitions.

See Also

Released under the Apache-2.0 License.