You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/b2c/skills/b2c-custom-api-development/SKILL.md
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -308,6 +308,45 @@ To query the Custom API status report, use an Account Manager token with scope:
308
308
- HEAD
309
309
- OPTIONS
310
310
311
+
## External Service Configuration
312
+
313
+
When your Custom API calls external services via `LocalServiceRegistry.createService()`, you must configure the service in Business Manager or import it via site archive.
314
+
315
+
See the `b2c:b2c-webservices` skill for:
316
+
- Service configuration patterns
317
+
- Services XML import format (credentials, profiles, services)
318
+
- HTTP, FTP, and SOAP service examples
319
+
320
+
### Calling External Services
321
+
322
+
```javascript
323
+
var LocalServiceRegistry = require('dw/svc/LocalServiceRegistry');
324
+
325
+
var service = LocalServiceRegistry.createService('my.external.api', {
0 commit comments