From salesforce-commerce
Manages Salesforce Commerce Cloud customers for B2C (profiles, groups, segmentation, SLAS auth, wishlists) and B2B (accounts, buyer groups, permissions, self-registration), with Data Cloud for unified profiles and consent.
npx claudepluginhub orcaqubits/agentic-commerce-skills-plugins --plugin salesforce-commerceThis skill is limited to using the following tools:
**CRITICAL**: Always fetch live documentation BEFORE implementing customer management features.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Guides MCP server integration in Claude Code plugins via .mcp.json or plugin.json configs for stdio, SSE, HTTP types, enabling external services as tools.
CRITICAL: Always fetch live documentation BEFORE implementing customer management features.
B2C Commerce Customer APIs
SLAS Authentication
B2B Commerce Buyer Management
Data Cloud Integration
Why: Customer API versions, SLAS token flows, B2B permission models, and Data Cloud connector capabilities evolve frequently. Live docs ensure correct schemas and compliance with GDPR/CCPA.
| Object | Description |
|---|---|
| Customer Profile | Registration data, preferences, custom attributes for personalization |
| Addresses | Billing and shipping addresses with validation and default selection |
| Payment Instruments | Tokenized payment methods (cards, wallets) -- never raw card data |
| Order History | Past orders, returns, order status tracking |
| Wishlists | Multiple product lists per customer; public, private, or shared visibility |
| Custom Attributes | Extended profile fields for segmentation and personalization |
| Concept | Description |
|---|---|
| Dynamic Groups | Auto-assigned based on attributes (VIP status, location, lifetime value) |
| Static Groups | Manually assigned membership for targeted campaigns |
| Group-based Pricing | Price books assigned to specific customer groups |
| Group-based Promotions | Exclusive offers for specific segments |
| Customer Segments | Rule-based segments for dynamic targeting and promotion qualification |
| Customer Lists | Curated lists for marketing campaigns and email targeting |
| Flow | Purpose |
|---|---|
| Guest Login | Anonymous shopper sessions for browsing and checkout |
| Registered Login | Authenticated sessions with username/password |
| Social Login | OAuth integration (Google, Facebook, Apple) |
| Token Refresh | Session extension via refresh tokens |
| Session Merge | Basket merge when guest converts to registered customer |
Token lifecycle: Access tokens have short TTL; refresh tokens extend the session. The Commerce SDK handles token refresh transparently. Store tokens securely (httpOnly cookies preferred over localStorage).
| Operation | Description |
|---|---|
| Profile CRUD | Create, read, update customer profiles |
| Address Management | Add, update, delete, set default addresses |
| Payment Instruments | Tokenize and store payment methods |
| Password Management | Reset and update passwords |
| Authentication | Login, logout, token refresh |
Fetch live docs for current SCAPI endpoint versions and request/response schemas before implementing.
| Feature | Description |
|---|---|
| Multiple Lists | Customers can create and name multiple wishlists |
| Item Operations | Add, remove, move items between lists |
| Sharing | Share via email or link with configurable privacy |
| Visibility | Public, private, or shared list settings |
| Object | Description |
|---|---|
| Business Accounts | Company entities with tax IDs, credit terms, parent/child hierarchies |
| Contacts | Individual users associated with accounts, with roles (purchaser, approver) |
| Buyer Groups | Control product entitlements, catalog visibility, and price book access |
| Buyer Permissions | Browse, add-to-cart, checkout, approval workflow, and budget controls |
| Self-Registration | Portal user registration with account request workflow and verification |
| Account Teams | Sales reps and support teams assigned to accounts |
| Permission | Controls |
|---|---|
| Browse | Product and price visibility |
| Add to Cart | Ability to build orders |
| Checkout | Ability to complete purchases |
| Approval | Order approval for certain users/amounts |
| Budget | Spending limits per user or group |
| Quote Request | Ability to request quotes from sales |
Parent/child account relationships model enterprise structures. Child accounts inherit default settings from parents but can override pricing, catalog visibility, and shipping preferences. Contact roles (decision maker, influencer, purchaser) provide sales intelligence.
| Capability | Description |
|---|---|
| Profile Unification | Merge B2C and B2B data into a single customer view via identity resolution |
| Consent Management | GDPR/CCPA compliance -- capture, respect, and audit consent across categories |
| Bi-directional Sync | Real-time for critical updates; batch for historical data loads |
| Data Mapping | Field mapping between Commerce Cloud and Data Cloud schemas |
| Conflict Resolution | Handle concurrent updates from multiple systems |
| Profile Enrichment | Append third-party data to customer profiles |
| Category | Purpose |
|---|---|
| Marketing | Email, SMS, push notification consent |
| Analytics | Browsing behavior and usage tracking |
| Personalization | Product recommendations and content targeting |
| Data Processing | General GDPR data processing consent |
All consent changes must be logged with timestamps for audit trail compliance. Honor right-to-be-forgotten requests with complete data deletion workflows.
Fetch the SCAPI Shopper Customers reference, SLAS authentication guide, B2B buyer management docs, and Data Cloud connector documentation for exact API schemas, token flows, and configuration before implementing.