sfcc-ocapi-scapi-slas

sfcc-ocapi-scapi-slas is a skill for Claude Code, Codex from taurgis/sfcc-dev-mcp. It costs 59 tokens per session (1,372 once invoked), scanned A, original, MIT.

A decision and troubleshooting guide for Salesforce Commerce Cloud APIs and SLAS, the service that handles shopper login tokens. It explains which API and login method to use for storefronts, backend systems, and headless sites.

In plain words
What is it for?
Use it when planning OCAPI or SCAPI integrations, setting up shopper or admin authentication, or debugging 429 rate-limit responses and token-refresh problems.
Why use it?
It helps avoid choosing the wrong API or requesting tokens incorrectly. It also explains rate-limit errors, token expiry, and refresh conflicts.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when planning OCAPI or SCAPI integrations, setting up shopper or admin authentication, or debugging 429 rate-limit responses and token-refresh problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add taurgis/sfcc-dev-mcp --skill sfcc-ocapi-scapi-slas
Clone the repo
git clone --depth 1 https://github.com/taurgis/sfcc-dev-mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for sfcc-ocapi-scapi-slas

README.md
[![agentmods](https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas/github.svg)](https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas)
Your own site
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for sfcc-ocapi-scapi-slas

Your own site · 80×15
<a href="https://agentmods.dev/skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas"><img src="https://agentmods.dev/badge/skills/taurgis/sfcc-dev-mcp/sfcc-ocapi-scapi-slas.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 59 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,372 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 2 findings, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 37
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
  • high Privilege Escalation · line 85
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00059 $0.01372
Opus 5 $0.00030 $0.00686
Sonnet 5 $0.00012 $0.00274
Haiku 4.5 $0.00006 $0.00137

Measured 9d ago against content hash 730532518a6b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

sfcc-ocapi-scapi-slas scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

ai-instructions/skills/sfcc-ocapi-scapi-slas/SKILL.md · 109 lines

How it starts

The opening of the file, as written. The whole thing — 109 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OCAPI vs SCAPI vs SLAS (Decision & Operations Skill)

This skill is for architecture decisions and recurring operational pitfalls:

  • When to choose OCAPI vs SCAPI
  • What SLAS rate limiting implies (429 + Retry-After)
  • How to manage SLAS tokens correctly
  • Hybrid auth implications in SFRA + headless setups

Quick Checklist

[ ] Identify the consumer: storefront server, backend system, or headless client
[ ] For shopper APIs, prefer SCAPI + SLAS when the endpoint exists
[ ] For admin APIs, use SCAPI Admin + Account Manager (AM), not SLAS
[ ] Expect 429 + Retry-After from SLAS; implement backoff + caching
[ ] Cache SLAS tokens within the correct scope (don't request a token per API call)
[ ] Refresh tokens rotate for public clients; private clients may be reusable
[ ] Avoid refresh-token race conditions (single-flight refresh per shopper)
[ ] Choose OAuth client type correctly: public vs private
[ ] Include channel_id in guest token requests when required

OCAPI vs SCAPI: Official distinctions

  • Shopper APIs use SLAS tokens. SLAS JWTs can be accepted by OCAPI endpoints when the SLAS client is allowed.
  • Admin APIs use Account Manager (AM) tokens, not shopper SLAS tokens.
  • Do not mix shopper SLAS clients with admin API access; request only the scopes required by the API family.

SLAS: Token Lifecycle (The Most Common Failure)

Token lifetimes are explicit

Access tokens are documented at roughly 30 minutes, while refresh token validity varies by shopper type and environment. Plan caching and refresh logic around these constraints, and confirm the current values for your org.

Token caching is (practically) required

If you request a new guest/login token repeatedly, you'll burn SLAS limits and create intermittent auth failures.

Cache tokens at the right scope:

  • Browser/PWA: per shopper session/device (never share tokens across shoppers)
  • BFF/server: per shopper session, or per server session key you control

In other words: cache aggressively, but never "globally" in a way that can mix identities.

Read the full file on GitHub · 109 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 109 lines · 59 tokens per session scan A 730532518a6b

Subscribe to this mod's changes

sfcc-ocapi-scapi-slas is a skill published in the GitHub repository taurgis/sfcc-dev-mcp (28 stars, last pushed 3d ago), licensed MIT. It adds 59 tokens to every session and 1,372 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

nebula-logger-instrumentation

Use this skill when the user wants to add or update Nebula Logger instrumentation in Apex, LWC, Aura, Flow, or OmniStudio. Covers logging APIs, save patterns, record association, scenarios, tags, async transaction linking, and save method selection.

jongpie/NebulaLogger · 60 tokens

ada-diamonds-api

Reference for the Ada Diamonds public REST API (https://www.adadiamonds.com/api/v1) covering every endpoint, self-serve API keys and OAuth 2.1 scopes, the public sandbox key, rate limits, error shapes, versioning, and working curl examples. Use when integrating with Ada Diamonds over HTTP, generating client code…

adadiamonds/agent-tools · 101 tokens

salesforce

Use when working with Salesforce orgs — executing Apex, writing SOQL/SOSL, managing records, running tests, deploying metadata, or analyzing code. Guidance for the Salesforce MCP Server's tools, prompts, and resources.

advancedcommunities/salesforce-mcp-server · 48 tokens

sfcc-cartridge-development

Build SFRA-based Salesforce Commerce Cloud cartridges with controllers, ISML templates, and hooks to customize storefront behavior.

finsilabs/awesome-ecommerce-skills · 27 tokens

sfcc-ocapi-scapi

Integrate with Salesforce Commerce Cloud's headless APIs (OCAPI and Shopper APIs) to build custom storefronts and mobile commerce experiences.

finsilabs/awesome-ecommerce-skills · 34 tokens

sf-knowledge-api-placeorder

Apply Salesforce knowledge and best practices for Place Order REST API Developer Guide.

Avinava/sf-documentation-knowledge · 20 tokens