Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Get Member's Active Segments

Retrieve active Data Cloud market segments that a loyalty program member is a part of.

For more information about how the getMemberActiveSegments action can be used to process transaction journals and apply promotions, see Get a List of Member's Active Segments for a Member in Salesforce Help.

This action is available in API version 55.0 and later for users in orgs where either B2C - Loyalty, B2C - Loyalty Plus, Loyalty Management - Growth, or Loyalty Management - Plus license and Data Cloud are enabled.

Supported REST HTTP Methods

URI
/services/data/vXX.X/actions/standard/getMemberActiveSegments
Formats
JSON, XML
HTTP Methods
POST
Authentication
Authorization: Bearer token

Inputs

Input Details
loyaltyProgramMemberID
Type
ID
Description
Required. The ID of the loyalty program member to retrieve associated active segments for.
segmentIds
Type
ID
Description
A comma-delimited list of segmentIds to retrieve for the specified member's associated segments.

Outputs

Output Details
memberSegmentIDs
Type
string
Description
A comma-delimited list of the active segment IDs that the specified loyalty program member is a part of. If no segments are specified in the request, the action returns segments from the default data space.

Example

Sample Request

1{
2   "inputs": [ {
3      "loyaltyProgramMemberID":"0lVxx000000016GMAQ"
4   } ]
5}

Sample Response

1{
2   "errors":null,
3   "isSuccess":true,
4   "outputValues":{
5        "memberSegmentIDs":"0lvxx00004000001AAB"}
6   }
7}