Integrate with SAP Commerce Cloud

The following steps must be completed to integrate with SAP Commerce Cloud.

Prerequisites

To ensure that Intelligent Selling Services works with SAP Commerce Cloud:
  • Enable the following web apps for Backoffice:

    {
    "name": "oauth2",
    "contextPath": "/authorizationserver"
    }
    {
    "name": "odata2webservices",
    "contextPath": "/odata2webservices"
    }
  • Add the Intelligent Selling Services lounge domain to the allowlist for CORS on the SAP Commerce Cloud side. To do this, adjust corsfilter.commercewebservices.allowedOrigins configuration property in the manifest.json file for the backoffice aspect. For example:

    corsfilter.commercewebservices.allowedOrigins=https://htp01234567.eu.context.cloud.sap. To learn more about aspects, see Aspects documentation.

    Alternatively, you can configure this property via the SAP Commerce Cloud portal for the hsc_common service. For more information, see Updating Service Properties.

Context

To complete the integration between SAP Commerce Cloud and Intelligent Selling Services, it is necessary to provide specific client details for authentication purposes. This ensures that the data from SAP Commerce Cloud is successfully received by Intelligent Selling Services and then transferred back.

Procedure

  1. In the navigation menu, go to Start of the navigation pathDevelopment Next navigation step Integration SetupEnd of the navigation path to open SAP Commerce Cloud Client window.
  2. Depending on your SAP Commerce Cloud version, select Yes or No.

    • Yes - fill in the following SAP Commerce Cloud client details:

      • SAP Commerce Cloud Connection URL: the location of your SAP Commerce Cloud instance.

        For example: https://backoffice.xxxxx-xxxxx-xxxxx-public.model-t.cc.commerce.ondemand.com.
      • personalizationSetupClient Client Secret

        For SAP Commerce Cloud version between 2105 and 2211.3, follow the steps described in Activating the Intelligent Selling Services Integration to create a client.

        For SAP Commerce Cloud version 2211.4 and higher, the client is automatically created during the initialization. In order to specify a client secret and set it to active, perform the following steps:
        1. Go to Start of the navigation pathBackoffice Next navigation step System Next navigation step OAuth Next navigation step OAuth ClientsEnd of the navigation path and select personalizationSetupClient.

          The OAuth client requires special privileges. For more information, see OAuth Client Privileges.

        2. In General tab specify a password in Client Secret section.

        3. In Disabled option buttons, activate the client by choosing False

        Now you can enter this password in Client Secret field.

      • Profile Tag Configuration: Copy this URL. This is the Profile Tag configuration URL of your site. It is required to properly set up tracking for Intelligent Selling Services.

    • No - copy the following URL:

      • Profile Tag Configuration: This is the Profile Tag configuration URL of your site. It is required to properly set up tracking for Intelligent Selling Services.

  3. Click the Next button to proceed.
  4. In Details and Intelligent Selling Services Client, fill in the required fields.
    • Configure SAP Commerce Cloud: fill out the form.

    • Intelligent Selling Services Client: select an existing client or create a new one by clicking the Create Client button.

  5. Click the Next button to proceed.
  6. In Finish Configuration, complete the integration.
    • For SAP Commerce Cloud version 2105 or higher: click the Connect button to store the configuration settings to your SAP Commerce Cloud instance. Optionally, you can also download the ImpEx file, which contains all configuration settings.

    • For SAP Commerce Cloud version older than 2105: click the Download ImpEx File button.

      Once the ImpEx file is succesfully downloaded, run the ImpEx in SAP Commerce Cloud Administration Console of your SAP Commerce Cloud instance.

OAuth Client Privileges

To configure your SAP Commerce Cloud instance for Intelligent Selling Services, you need an OAuth client with special privileges.

The privileges cover the read rights to fetch Backoffice objects to fill the dropdown lists in the Integration Setup for an easier configuration. They also cover read, create, and change rights to create and configure the necessary REST endpoints as well as to persist your configuration in the respective Backoffice objects.

REST Endpoints

To create and configure the required REST endpoints, the client must be authorized to read, create and change the following Backoffice object types:
· AuthenticationType

· AttributeDescriptor

· InboundChannelConfiguration

· IntegrationObject

· IntegrationObjectItem

· IntegrationObjectItemAttribute

· IntegrationObjectItemVirtualAttribute

· IntegrationObjectVirtualAttributeDescriptor

· IntegrationType

· Script

· ScriptType

· Type

Dropdown Lists

To fill dropdown lists in the Integration Setup, the client must be authorized to read the following Backoffice object types:
· BaseSite

· Catalog

· CatalogVersion

· Currency

· Language

· SolrIndexedType

Configuration Persistence

To persist your configuration in Backoffice, the client must be authorized to read, create, and change the following Backoffice object types:
· AbstractCMSComponent

· AbstractRestriction

· CMSFlexComponent

· CMSParagraphComponent

· CMSSite

· ConsentTemplate

· ConsumedDestination

· ConsumedOAuthCredential

· ContentSlot

· DestinationChannel

· DestinationTarget

· Endpoint

· MerchProductDirectoryConfig

· MerchProperty

· SmarteditConfiguration

· SolrIndexedProperty