Commerce Hub API
How to integrate third-party commerce systems
The CoreMedia Commerce Hub controls communication of CoreMedia apps with commerce systems by defining a vendor agnostic API covering the most common eCommerce features and providing a default client-server implementation of this API.
Communicating with the Commerce Client
All CoreMedia components (CAE, Studio, Headless Server) that need access to the commerce system include a generic Commerce Hub Client. The client implements the CoreMedia eCommerce API. Therefore, you have a single, manufacturer independent API on CoreMedia side, for access to the commerce system.
The commerce system specific part exists in a service with the commerce system specific connector. The connector uses the API of the commerce system (often REST) to get the commerce data. In contrast, the generic Commerce Hub client and the Commerce Adapters use gRPC for internal communication (see https://grpc.io/ for details), although this is mostly hidden by the Java base API implementation. Custom Commerce Adapters normally only need to implement the Java base API and do not have to deal with gRPC.
CoreMedia offers connectors for several eCommerce systems. See the download page for a list of the connectors.
Detailed communication with the Commerce Client
With the Commerce API you can, for example, do the following tasks:
- Adapt existing adapters to your needs
- Write an adapter for your custom commerce systems
- Browse the Commerce API Javadoc
- Learn how to program your own Commerce Adapter Custom Commerce Adapter Developer Manual
- Study the Mock Adapter for Commerce Hub in combination with the Custom Commerce Adapter Developer Manual to program your own adapter
- Study the Sparc example site to learn how to connect a commerce system with the Headless Server. Spark is a React example application based on React, TypeScript and the Headless Server of CoreMedia Content Cloud. It contains a GraphQL schema stitching server, and a commerce mocking server. The stitching server provides a unified GraphQL interface with an optional waiver of the otherwise necessary commerce connection (GraphQL Mocking Server).
- Learn about changes in the Releasenotes for Adapter for Salesforce Commerce Cloud
- Learn about changes in the Releasenotes for Adapter for HCL Commerce
- Learn about changes in theReleasenotes for Adapter for SAP Commerce Cloud
- Learn about changes in the Releasenotes for Adapter for commercetools
- Learn about changes in the Releasenotes for Mock Adapter for Commerce Hub