Connector for SAP Commerce usage in Content Delivery

With the Tridion Connector for SAP Commerce, Content Delivery's open GraphQL interface is capable of retrieving Product and Category data from SAP Commerce Cloud, as well as listing and searching product data.

The Connector for SAP Commerce is deployed into the Content Service using the standard extension mechanism provided by the Add-ons Service. On deployment, additional GraphQL capabilities and commerce data types for SAP Commerce get registered into the GraphQL engine.

The connector supports the following GraphQL requests:

  • externalItem - use to get a single commerce data item, such as a product
  • externalItems - use to search for or list a set of commerce items

The following example illustrates the using the externalItem request to retrieve data for a product using its ID:

{
  externalItem(
    identity: {
    	namespace: "SAPCommerce",
    	id: "23355",
    	type: "Product"
    }
  ) {
    ... on Product {
      name
      summary
      description
      categories {
        identity {
          id
          type
        }
      }
      price {
        value
        currency
      }
      images {
        format
        imageReference
      }
    }
  }
}