Overview

The Member Enricher reacts to specified activities in the Loyalty package's services and updates SAP Hybris Profile.

New member registration

When a new member registers with a loyalty program, the enricher initiates the creation of these nodes in the Secure Graph service:

  • Profile node: Creates a profile for the loyalty member if it does not exist.
  • Loyalty Tier node: Stores the loyalty program tier information if it does not exist.
  • Loyalty Activity Statistics node: Stores the activity scores of a loyalty member.
  • Loyalty Points History node: Stores the history of points accumulation for a loyalty member, along with the member's current points balance.
  • Month node: Stores the name of the month. This node is linked to the Loyalty Activity Statistics node.
  • Identity node (Loyalty): Stores a loyalty member's information.
  • Identity node (Customer): Stores a customer ID if it does not exist. For example, the node can store the customer ID of a consumer in SAP Hybris Commerce.
  • Identity node (Email): Stores the email address of the loyalty member if it does not exist.

Tier updates

When you update an existing tier in the loyalty program configuration, the service updates the corresponding Loyalty Tier node in the Secure Graph service.


Events

For more information about events, see the PubSub service documentation.

The Member Enricher responds to events triggered by new member registration and program Tier updates.

New loyalty program member registration

When a new member registers with a loyalty program, the Member Enricher creates these node types and the relationships between them:

  • Profile node (if it does not exist)
  • Identity node (Email)(if it does not exist)
  • Identity node (Customer)(if it does not exist)
  • Identity node (Loyalty)
  • Tier node (if it does not exist)
  • Loyalty Activity Statistics node
  • Loyalty Points History node
  • Month node (if it does not exist)
  • Relationship between the Profile node and Identity node (Email)
  • Relationship between the Profile node and Identity node (Customer)
  • Relationship between the Profile node and Identity node (Loyalty)
  • Relationship between the Identity node (Loyalty) and Tier node
  • Relationship between the Profile node and Identity node (Email)
  • Relationship between the Profile node and Loyalty Activity Statistics node
  • Relationship between the Profile node and Loyalty Points History node
  • Relationship between the Loyalty Activity Statistics node and Month node
  • Relationship between the Identity nodes (Loyalty) of different members when one member refers another

Loyalty program tier details update

When you update a loyalty program tier, the Member Enricher updates the corresponding Tier node in SAP Hybris Profile.

Triggered by SchemaPayload example
context/loyalty/loyaltymember

The Member Enricher creates or updates various nodes and relationships in the Secure Graph service:

Node or RelationshipProperties
nodes/loyalty/Identitytype
nodes/core/Identitytype
nodes/core/Profile
nodes/loyalty/LoyaltyActivityStatisticsactivityScore
nodes/loyalty/LoyaltyActivityStatisticsactivityScoreHistory
nodes/loyalty/Tier
nodes/core/Month
nodes/loyalty/LoyaltyPointsHistoryloyaltyPointsHistory
nodes/loyalty/LoyaltyPointsHistorycurrentLoyaltyBalance
relations/core/Profile/core/Identity/core/IDENTIFIES
relations/core/Profile/loyalty/Identity/loyalty/IDENTIFIES
relations/core/Profile/loyalty/LoyaltyActivityStatistics/loyalty/HASupdateTimeStamp
relations/loyalty/LoyaltyActivityStatistics/core/Month/loyalty/UPDATEDupdateTimeStamp
relations/loyalty/Identity/loyalty/Tier/loyalty/HAScurrentLoyaltyBalance
relations/loyalty/Identity/loyalty/Identity/loyalty/REFERRED_BY
relations/core/Profile/loyalty/LoyaltyPointsHistory/loyalty/HASupdateTimeStamp


Metamodel

This interactive graphic displays the schemas that invoke this enricher and the schemas the enricher can affect in the graph, as defined in a current snapshot of the metamodel.


Glossary

TermDescription
TierMerchants define loyalty tiers, which are levels that consumers can achieve in a loyalty program. Example tiers are Gold, Silver, and Bronze.


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