Custom API Status Report

The Custom API status report enhances transparency and reduces troubleshooting time by providing real-time visibility into the registration status of your Custom APIs. When you activate a code version that includes Custom APIs, the registration process can yield different outcomes for each endpoint. Previously, developers had to manually sift through logs to diagnose issues, but the Custom API status report simplifies this by offering clear, actionable feedback.

  • Real-time status reporting: Get immediate feedback on endpoint registration status.
  • Error transparency: Understand why an endpoint failed to register.
  • Reduced debugging time: No manual log searching.
  • Improved development workflow: Quickly identify and resolve endpoint issues.

Every Custom API endpoint can have one of the following registration statuses:

StatusDescriptionAccessible?
ACTIVEEndpoint was successfully registered and is ready to handle requests.Y
NOT_REGISTEREDEndpoint failed to register due to an error in configuration or implementation.N

The Custom API status report requires authentication using the Account Manager OAuth 2.0 flow with the required scope:

  • sfcc.custom-apis (read-only)
ParameterTypeRequiredDescription
shortCodePathYesAn eight-character string assigned to a realm for routing purposes, for example: kv7kzm78
organizationIdPathYesA short string that identifies your B2C Commerce instance, for example: f_ecom_zzte_053
statusQueryNoFilter endpoints by status: ACTIVE or NOT_REGISTERED

The endpoint returns a JSON object containing:

  • activeCodeVersion: The currently active code version
  • total: Total number of endpoints discovered across all sites and cartridges
  • limit: Number of endpoints included in this response. This count matches the filter criteria and equals total when no filters are applied.
  • data: Array of endpoint objects with detailed information
  • filter: Object containing applied filters. This is present only if filters are used in the request.

Each endpoint object includes:

FieldDescription
idUnique identifier for the endpoint (consistent across code version activations)
apiNameName of the API, for example: loyalty-info
apiVersionVersion of the API, for example: v1
cartridgeNameName of the cartridge containing the endpoint
endpointPathThe endpoint path, for example: /customers
httpMethodHTTP method, for example: GET, POST)
operationIdOperation identifier from the OpenAPI schema
implementationScriptName of the implementation script file
schemaFileName of the OpenAPI schema file
siteIdSite identifier where the endpoint is registered
securitySchemeSecurity scheme used by the endpoint
statusRegistration status (ACTIVE or NOT_REGISTERED)
errorReasonError description (only present when status is NOT_REGISTERED)

Get information for all Custom API endpoints in your organization:

Response:

Get endpoints that failed to register:

Response:

The API returns these standard HTTP status codes:

  • 200: Successful request
  • 400: Invalid filter parameter, for example: unsupported status value
  • 401: Authentication required
  • 403: Insufficient permissions (missing required scope)

When endpoints have a NOT_REGISTERED status, common errors include:

  • Invalid file paths: Schema or implementation files are not found
  • Invalid files: Schema or implementation files are unreadable
  • Configuration errors: Issues with API mapping
  • Validation errors: Issues with security scheme or parameter definition
  • Schema file errors: Invalid OpenAPI specification format or structure
  • Schema reference errors: External dependency validation issues
  • Path pattern errors: URL pattern parsing failures
  1. Check overall status: Use the status report without filters to get an overview of all endpoints.
  2. Check code version: Verify that the active code version in the field activeCodeVersion is the version you expect.
  3. Identify failed endpoints: Filter by status=NOT_REGISTERED to focus on problematic endpoints.
  4. Analyze errors: Review the errorReason field for specific guidance.
  5. Fix issues: Address the identified problems in your cartridge.
  6. Reactivate: Upload and activate a new code version.
  7. Verify: Call the status report again to confirm successful registration.