Overview

The Analytics service enables you to:

  • Retrieve the activity score of a Loyalty Member by loyalty member ID from SAP Hybris Profile. Activity score checks how frequently a loyalty member is performing activities in SAP Hybris Loyalty.
  • Retrieve the list of all the members within a range of activity scores. This can be use to retrieve all the inactive or highly active members of the loyalty program.


API Reference

/activityscores/{memberId}

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

/activityscores/{memberId}

get

Get Activity Score of Loyalty Member over time.

Accepted scopes:

  • 'sap.loyprofile_analytics_view' - Required to get data.

/memberswithactivityscore/{min}/{max}

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

/memberswithactivityscore/{min}/{max}

get

Get Activity Score of Loyalty Member within specified range.

Accepted scopes:

  • 'sap.loyprofile_analytics_view' - Required to get data.


Scopes

Scopes are strings that allow you to specify the type of access you need to resources and operations in the Loyalty Analytics service.

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

- Authorization
- Scopes

The table shows the scopes that the Loyalty Analytics service accepts.

ScopeDescription
sap.loyprofile_analytics_viewUse this scope to read data.


Glossary

TermDescription
Activity ScoreActivity scores are calculated for each loyalty member based on a formula that depends on the number of loyalty points accrued in the last six months. The formula for the activity score is `1.0*(Points from Month "N") + 0.8*(Points from Month "N-1") + 0.6*(Points from Month "N-2") + 0.4*(Points from Month "N-3") + 0.2*(Points from Month "N-4") + 0.1*(Points from Month "N-5")`, where `N` is the current month.


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