sfcc-localserviceregistry

Create SFCC HTTP services with LocalServiceRegistry, OAuth flows, and credential management.

27|9|Updated Aug 8, 2025
One-click install
npx skills add https://github.com/taurgis/sfcc-dev-mcp --skill sfcc-localserviceregistry
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sfcc-localserviceregistry
Source: https://github.com/taurgis/sfcc-dev-mcp/tree/main/ai-instructions/skills/sfcc-localserviceregistry
Command: npx skills add https://github.com/taurgis/sfcc-dev-mcp --skill sfcc-localserviceregistry

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

SFCC requires a robust, repeatable pattern for server-to-server integrations with external APIs. LocalServiceRegistry provides a unified approach to defining HTTP services, managing credentials, and handling request/response flows in a scalable way.

Core Features & Use Cases

  • Declarative configuration in Business Manager for Credentials, Profiles, and Services to securely manage endpoints and fault-tolerance.
  • Programmatic service definitions using dw.svc.LocalServiceRegistry with createRequest, parseResponse, mockCall, and mockFull callbacks.
  • Support for OAuth flows, token management, and credential handling, plus production-safety patterns like strict error handling and redacted logging.
  • Guidance on production considerations such as caching, logging, and monitoring for service health.

Quick Start

Follow the steps to create a credential, define a profile, and register a service in Business Manager, then implement a LocalServiceRegistry module in your cartridge.

Frequently Asked Questions about sfcc-localserviceregistry

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create a server-to-server HTTP service in SFCC using LocalServiceRegistry?

You create server-to-server HTTP services in SFCC by defining a LocalServiceRegistry module with createRequest, parseResponse, mockCall, and mockFull callbacks, then configuring the associated credential and profile in Business Manager.

How does LocalServiceRegistry handle OAuth token flows and credential management in SFRA cartridges?

LocalServiceRegistry handles OAuth token flows by applying programmatic service definitions within SFRA cartridges, utilizing Business Manager credentials to securely manage endpoints and authenticate server-to-server requests.

What is the best way to securely manage external API credentials and endpoints in Salesforce Commerce Cloud?

The best way to manage external API credentials in Salesforce Commerce Cloud is using declarative configuration in Business Manager to define credentials, profiles, and services for scalable and secure endpoint management.

How do I implement redacted logging and error handling for SFCC service integrations?

You implement redacted logging and strict error handling for SFCC service integrations by applying production-safety patterns within your LocalServiceRegistry module callbacks to ensure secure and fault-tolerant request processing.

Can I use LocalServiceRegistry to cache HTTP responses for external API calls in SFCC?

Yes, you can use LocalServiceRegistry to cache HTTP responses for external API calls in SFCC by applying the optional HTTP response caching pattern provided within the reusable service module architecture.

How do I mock external API service calls during SFCC cartridge development?

You mock external API service calls during SFCC cartridge development by implementing the mockCall and mockFull callbacks in your LocalServiceRegistry service definition to simulate request and response flows.