Commerce Insights SSO API

Overview

The Commerce Insights SSO service provides access to Commerce Insights reports using REST calls. You can use these APIs to generate URLs for Commerce Insights reports.

Reports include:

  • Dashboard
  • Realtime
  • Insights
  • Merchandising
  • Marketing
  • Customer summaries
  • Orders

See also


API Reference

/site/{partner_site_id}/{report}

Retrieves the iFrame-able URL to a Commerce Insights report

/site/{partner_site_id}/{report}

get

Retrieves the URL

Scopes required: hybris.comminsights-sso_view


Scopes

Scopes are strings that let you specify exactly what type of access you need to resources and operations in the Commerce Insights SSO 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 SSO service supports.
ScopeDescription
hybris.comminsights-sso_viewUse this scope to see the Commerce Insights reports.


iframe Example

Here is an example of rendering the Commerce Insights report using iframe. With YOUR_REPORT_URL returned from a successful call to the Commerce Insights SSO API, follow these steps:

  1. Create an iframe.

    <iframe name="theFrame"></iframe>
    
  2. Open YOUR_REPORT_URL in iframe:

    window.open(YOUR_REPORT_URL, "theFrame");
    


  • 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.