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 |
|
| ChangeReasonType |
|
| LoyaltyProgramMemberId |
|
| ProgramName |
|
| TierGroupName |
|
| TargetTierName |
|
Outputs
| Output | Details |
|---|---|
| LoyaltyProgramMemberId |
|
| ProgramName |
|
| TierGroupName |
|
| TargetTierName |
|
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}