Overview

The Key Performance Indicator (KPI) service is used to manage KPIs in the Customer Journey Manager application.

The Customer Journey Manager package contains the following two KPIs:

  • Number of Orders
  • Number of Customers

To use these KPIs in the application, subscribe to the Customer Accounts and the Order Management packages in the YaaS Market.

Use the KPI service to perform the following tasks:

  • Create KPI metadata
  • Get a list of KPIs

Use a standard REST call to perform all operations related to creating, deleting, viewing, and updating KPIs.

Scopes prevent unauthorized access to the KPI service. The accepted scopes for this service are listed below:

  • hybris.kpi_view - Use this scope to retrieve KPIs.
  • hybris.kpi_manage - Use this scope to create or update KPIs. This scope does not allow you to retrieve or delete KPIs.
  • hybris.kpi_delete - Use this scope to delete KPIs.


API Reference

/metadata

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/metadata

get

Retrieves a list of KPI metadata.

Accepted scopes:

  • hybris.kpi_view – Required to retrieve KPI metadata
post

Creates KPI metadata.

Accepted scopes:

  • hybris.kpi_manage – Required to create a KPI metadata

/metadata/{kpiId}

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

get

Retrieves a KPI metadata.

Accepted scopes:

  • hybris.kpi_view – Required to retrieve a KPI metadata
put

Updates a KPI metadata.

Accepted scopes:

  • hybris.kpi_manage – Required to update a KPI metadata
delete

Deletes a KPI metadata.

Accepted scopes:

  • hybris.kpi_delete – Required to delete a KPI metadata

/sourceSystems

This resourceType defines the GET, POST, DELETE methods and their responses for a collection resource.

/sourceSystems

get

Retrieves a list of KPI source systems.

Accepted scopes:

  • hybris.kpi_view – Required to retrieve KPI source system
post

Creates a KPI source system.

Accepted scopes:

  • hybris.kpi_manage – Required to create a KPI source system

/sourceSystems/{sourceSystemId}

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

get

Retrieves a KPI source system.

Accepted scopes:

  • hybris.kpi_view – Required to retrieve a KPI source system
put

Updates a KPI source system.

Accepted scopes:

  • hybris.kpi_manage – Required to update a KPI source system
delete

Deletes a KPI source system.

Accepted scopes:

  • hybris.kpi_delete – Required to delete a KPI source system

/kpis

/kpis

get

Retrieves the last 7 days KPIs.

Accepted scopes:

  • hybris.kpi_view – Required to retrieve KPIs
post

Creates KPI.

Accepted scopes:

  • hybris.kpi_manage – Required to create KPI

/initialLoad

/initialLoad

post

Creates default KPIs on subscription to Customer Journey Manager package.

Accepted scopes:

  • hybris.kpi_manage – Required to create default KPIs


Glossary

TermDescription
KPI SourceA system that is the source of the KPI.


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