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.

Change All Tiers or None

Change tier for a specified loyalty program member only when all the input parameters meet the criteria.

This action is available in API version 51.0 and later for users with Loyalty Management license.

Supported REST HTTP Methods

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

Inputs

Input Details
ChangeReason
Type
string
Description
The reason for change in the tier.
ChangeReasonType
Type
string
Description
The reason type for change in the tier.
LoyaltyProgramMemberId
Type
ID
Description
Required. ID of the loyalty program member.
ProgramName
Type
string
Description
Required. The name of the loyalty program.
TierGroupName
Type
string
Description
Required. The name of the tier group.
TargetTierName
Type
string
Description
Required. The new tier to be associated with the loyalty program member.

Outputs

Output Details
LoyaltyProgramMemberId
Type
ID
Description
ID of the loyalty program member.
ProgramName
Type
string
Description
The name of the loyalty program.
TierGroupName
Type
string
Description
The name of the tier group.
TargetTierName
Type
string
Description
The new tier associated with the loyalty program.

Example

Sample Request

1{ 
2   "inputs":[{
3       "TierGroupName":"Default Tier Group",
4       "ProgramName":"Rewards program",
5       "TargetTierName":"Gold",
6       "LoyaltyProgramMemberId": "0lcxx00006000001AAA",
7       "ChangeReason":"Reason to change the tier"
8   }]
9}

Sample Response

1{ 
2   "actionName":"changeTierWhenNoErrors",
3   "errors":null,
4   "isSuccess":true,
5   "outputValues":{ 
6      "LoyaltyProgramMemberId":"0lcxx00006000001AAA",
7      "TierGroupName":"Default Tier Group",
8      "ProgramName": "Rewards program",
9      "TargetTierName":"Gold",
10   }
11}