Commerce Insights Provisioning API

Overview

The Commerce Insights Provisioning service helps you to manage your site(s) on Commerce Insights. The Commerce Insights Provisioning service supports the administration of one or many sites on Commerce Insights using REST calls. You can use these APIs to:

  • add new sites for Commerce Insights reporting
  • remove sites from Commerce Insights reporting
  • update the properties of your sites
  • customize event processing by Commerce Insights for a site

Site properties

Use these properties to manage your sites using the Commerce Insights service:

  • currency
  • name
  • time zone
  • URL
  • blocked IDs
  • blocked IPs
  • site type

Customizations for event processing

This API offers two ways to filter out events on your site:

  • by IP
  • by ID

See Also


API Reference

/site

Use this API to add/update/remove sites from Commerce Insights

/site

post

Add a Commerce Insights site

Required scopes: hybris.comminsights-provision_manage

/site/{partner_site_id}

This resource type defines the GET, PUT, DELETE methods and their responses for a single element resource.

get

Retrieves a Commerce Insights site details.

Required scopes: hybris.comminsights-provision_manage

put

Updates a Commerce Insights site details.

Required scopes: hybris.comminsights-provision_manage

delete

Deletes a Commerce Insights site.

Required scopes: hybris.comminsights-provision_manage

/site/{partner_site_id}/historical-status

get

Retrieves a Commerce Insights site historical sync status.

Required scopes: hybris.comminsights-provision_manage

put

Updates a Commerce Insights site historical sync status.

Required scopes: hybris.comminsights-provision_manage

/site/{partner_site_id}/id/

get

Retrieves a Commerce Insights site's unique site id.

Required scopes: hybris.comminsights-provision_manage

/site/{partner_site_id}/csv/

get

Retrieves a Commerce Insights site's merchandise categories. Output is in CSV format.

Required scopes: hybris.comminsights-provision_manage

put

Uploads your Commerce Insights site's merchandise categories. CSV format only.

Required scopes: hybris.comminsights-provision_manage

/site/{partner_site_id}/csv/status

get

Retrieves a Commerce Insights site's CSV ready status. true means that this site can accept CSV uploads. false means otherwise.

Required scopes: hybris.comminsights-provision_manage


Scopes

Scopes are strings that let you specify exactly what type of access you need to resources and operations in the Commerce Insights Provisioning service.

You must provide a proper scope that allows users to perform certain operations. Grant the scopes in an access token from the OAuth 2.0 service. For more information about the authorization and authentication used in SAP Hybris services, and also about the scopes in general, see:

The table presents all the scopes that the Commerce Insights Provisioning service supports.
ScopeDescription
hybris.comminsights-provision_manageThis scope is required to create, retrieve, update, or delete a Commerce Insights site on behalf of the customer.


Filter Events by IP

You can customize the events that Commerce Insights processes for a site by filtering out events by IP. This is useful to remove the processing of test orders. This functionality uses the blocked-ips site property.


Filter Events by ID

You can customize the events processed by Commerce Insights for a site by filtering out events by user ID. This is useful to remove the processing of test orders. This functionality uses the blocked-ids site property.


Glossary

TermDescription
blocked IdsList of users denied to Commerce Insights event processing.
blocked IPsList of IPs denied to Commerce Insights event processing.
eventE-commerce platforms trigger events when specific things happen such as creation of a cart or product or fulfillment of an order.
partner site IDThe primary key Commerce Insights uses to uniquely identify a site.
site typeFree text or notes for a site.


  • Send feedback

    If you find any information that is unclear or incorrect, please let us know so that we can improve the Dev Portal content.

  • Get Help

    Use our private help channel. Receive updates over email and contact our specialists directly.

  • hybris Experts

    If you need more information about this topic, visit hybris Experts to post your own question and interact with our community and experts.