.png)

SAP Commerce Cloud Integration Guide
Connect SAP Commerce Cloud with enterprise systems through OCC REST APIs, OData-based Integration APIs, configured events, files, and OAuth 2.0.
SAP Commerce Cloud integration options at a glance
SAP Commerce Cloud integrations primarily use OCC REST APIs for customer-facing commerce operations such as products, carts, checkout, customers, and orders. The OData-based Integration API supports configured Integration Objects for master-data synchronization, fulfillment, and administrative scenarios. Catalog synchronization, Impex processing, media exchange, and other import/export mechanisms support bulk-oriented workloads. Event and outbound integration patterns are available in some configurations, but webhook coverage depends on the release, extensions, and tenant setup. Martini can authenticate with OAuth 2.0, orchestrate scheduled or event-driven workflows, map commerce data, apply business rules, and manage retries without relying on direct database access.
Common SAP Commerce Cloud integration patterns
Common SAP Commerce Cloud data objects used in integrations
Authentication and security considerations
OAuth 2.0 access
SAP Commerce Cloud commonly protects OCC and Integration API access with OAuth 2.0 bearer tokens. Client credentials, scopes, authorities, token endpoints, and permitted operations depend on the tenant configuration.
Secrets and permissions
Store client secrets, token values, base URLs, and environment-specific settings in Martini secrets or secure environment configuration. Grant only the Commerce API permissions required by each workflow.
Protected data
- Separate development, test, and production credentials.
- Apply field-level controls to customer, address, payment, and consent data.
- Do not embed credentials in workflow logic or payloads.
- Use supported APIs and approved file or event interfaces instead of direct database access.
Operational considerations for SAP Commerce Cloud integrations
Rate limits and pagination
Request limits depend on tenant configuration, cloud tenancy, API gateway behavior, and the surrounding SAP landscape. Control concurrency, handle 429 responses where returned, use bounded exponential backoff, and process paginated collections until completion.
Idempotency and checkpoints
Use product codes, customer UIDs, order codes, consignment codes, or agreed external identifiers as stable keys. Persist checkpoints only after successful pages or batches so a restart does not duplicate completed work.
Schema and extension changes
Tenant-specific extensions and Integration Objects can change the available fields and operations. Use contract tests and monitor required attributes, status values, API versions, and Integration Object definitions.
Business-state errors
Order and fulfillment transitions are stateful. Verify the current state before updating an object, and route validation, stale-object, and invalid-transition failures for correction rather than repeatedly retrying them.
Media and bulk processing
Separate media metadata from binary content and use import, export, synchronization, or supported batch mechanisms for high-volume workloads. Reconcile item-level failures and completed batches.
Why use Martini instead of scripts or point-to-point integrations?
Centralized orchestration
Martini coordinates SAP Commerce Cloud API calls, events, files, target-system writes, validation, and reconciliation in workflows rather than scattering logic across independent scripts.
Reusable integration assets
Reusable workflows, APIs, mappings, transformations, and secure environment configuration make it easier to support multiple Commerce channels and downstream systems without duplicating implementation logic.
Operational control
Martini provides a place to implement pagination, checkpoints, idempotency, bounded retries, error classification, and monitoring for long-running catalog, order, customer, and inventory processes.
Flexible API-led design
Martini can consume OCC and Integration APIs, receive configured callbacks, process approved files, and expose a stable API façade. This supports tenant-specific SAP Commerce configurations without requiring direct database access or a dedicated vendor connector.