Loading...
Loading...
Browse and retrieve (B2C/SFCC/Demandware) SCAPI OpenAPI schemas with the b2c cli. Always reference when using the CLI to browse SCAPI schemas, check API request/response formats, explore available endpoints, or understand SCAPI data models.
npx skill4agent add salesforcecommercecloud/b2c-developer-tooling b2c-scapi-schemasb2cTip: Ifis not installed globally, useb2cinstead (e.g.,npx @salesforce/b2c-cli).npx @salesforce/b2c-cli scapi schemas list
--tenant-idzzxy_prd--tenant-idf_ecom_zzxy_prdf_ecom_| Hostname | Tenant ID |
|---|---|
| |
| |
| |
zzxy_prd# list all available SCAPI schemas
b2c scapi schemas list --tenant-id zzxy_prd
# list with JSON output
b2c scapi schemas list --tenant-id zzxy_prd --json# filter by API family (e.g., product, checkout, search)
b2c scapi schemas list --tenant-id zzxy_prd --api-family product
# filter by API name
b2c scapi schemas list --tenant-id zzxy_prd --api-name shopper-products
# filter by status
b2c scapi schemas list --tenant-id zzxy_prd --status current# get collapsed schema (paths show methods, schemas show names only)
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd
# save to file
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd > schema.json# expand specific paths
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --expand-paths /products,/products/{productId}
# expand specific schemas
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --expand-schemas Product,ProductResult
# combine expansions
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --expand-paths /products --expand-schemas Product# get full schema without any collapsing
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --expand-all# list all paths in the schema
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --list-paths
# list all schema names
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --list-schemas
# list all examples
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --list-examples# output as YAML
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --yaml
# output wrapped JSON with metadata (apiFamily, apiName, apiVersion, schema)
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --json# include custom properties (default behavior)
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd
# exclude custom properties
b2c scapi schemas get product shopper-products v1 --tenant-id zzxy_prd --no-expand-custom-propertiesSFCC_TENANT_IDzzxy_prdSFCC_SHORTCODEb2c scapi schemas --help