Loading...
Loading...
Check Custom SCAPI (B2C/SFCC/Demandware) endpoint registration status with the b2c cli. Always reference when using the CLI to check custom API endpoint status, verify custom API deployment, or debug "endpoint not found" errors. For creating new custom APIs, use b2c-custom-api-development skill instead.
npx skill4agent add salesforcecommercecloud/b2c-developer-tooling b2c-scapi-customb2cTip: Ifis not installed globally, useb2cinstead (e.g.,npx @salesforce/b2c-cli).npx @salesforce/b2c-cli scapi custom status
--tenant-idzzxy_prd--tenant-idf_ecom_zzxy_prdf_ecom_| Hostname | Tenant ID |
|---|---|
| |
| |
| |
zzxy_prd# list all Custom API endpoints for an organization
b2c scapi custom status --tenant-id zzxy_prd
# list with JSON output
b2c scapi custom status --tenant-id zzxy_prd --json# list only active endpoints
b2c scapi custom status --tenant-id zzxy_prd --status active
# list only endpoints that failed to register
b2c scapi custom status --tenant-id zzxy_prd --status not_registered# group endpoints by API type (Admin vs Shopper)
b2c scapi custom status --tenant-id zzxy_prd --group-by type
# group endpoints by site
b2c scapi custom status --tenant-id zzxy_prd --group-by site# show extended columns (includes error reasons, sites, etc.)
b2c scapi custom status --tenant-id zzxy_prd --extended
# select specific columns to display
b2c scapi custom status --tenant-id zzxy_prd --columns type,apiName,status,sites
# available columns: type, apiName, apiVersion, cartridgeName, endpointPath, httpMethod, status, sites, securityScheme, operationId, schemaFile, implementationScript, errorReason, id# quickly find and diagnose failed Custom API registrations
b2c scapi custom status --tenant-id zzxy_prd --status not_registered --columns type,apiName,endpointPath,errorReasonSFCC_TENANT_IDzzxy_prdSFCC_SHORTCODEb2c scapi custom --helpb2c:b2c-custom-api-developmentb2c-cli:b2c-code