Newer Version Available

This content describes an older version of this product. View Latest

BuyerGroupEvaluationService Class

The BuyerGroupEvaluationService class allows you define and execute custom business logic for dynamically assigning users to buyer groups. Unlike out-of-the-box configurations limited to account, market, or data segment-based buyer groups, this service supports extensibility and empowers you to implement tailored buyer group evaluation strategies. It supports both guest and logged-in user scenarios, enabling highly customizable and context-specific buyer group determination.

Namespace

CommerceBuyGrp

Consideration

When implementing the BuyerGroupEvaluationService, remember these key points:

Usage

Use the BuyerGroupEvaluationService to implement custom logic for assigning users to buyer groups. By integrating your logic with this service, you can evaluate and assign buyer groups in real time based on criteria specific to your organization.

  • Define Custom Logic—Create your own business rules to evaluate and assign users to appropriate Buyer Groups.
  • Integration with the Service—Integrate your custom logic into the BuyerGroupEvaluationService to dynamically determine buyer group membership at runtime.
  • Test and Validate—Test your implementation to ensure it behaves as expected and doesn’t introduce errors or inconsistencies in group assignments.

Example

For an example implementation of the CommerceBuyGrp.BuyerGroupEvaluationService class, see Commerce Extensibility.

BuyerGroupEvaluationService Methods

The following are methods for BuyerGroupEvaluationService.

getBuyerGroupIds(request)

Retrieves a list of evaluated buyer group IDs assigned to a user based on custom or predefined business logic.

Signature

public CommerceBuyGrp.BuyerGroupResponse getBuyerGroupIds(CommerceBuyGrp.BuyerGroupRequest request)

Parameters

request
Type: CommerceBuyGrp.BuyerGroupRequest

Return Value

Type: CommerceBuyGrp.BuyerGroupResponseCommerceBuyGrp.BuyerGroupResponse