Tier Updates
Real-time Tier Update Notifications
Open Loyalty Requirements
Braze Requirements
Setting up the integration
3
Configure the Data Transformation
let brazecall = {
// Update the user's profile attribute with the new tier name
"attributes": [
{
"external_id": payload.data.customer.loyaltyCardNumber,
"loyalty_tier": payload.data.level.name
}
],
// Trigger a custom event for the campaign
"events": [
{
"external_id": payload.data.customer.loyaltyCardNumber,
"name": "Loyalty Tier Changed",
"time": new Date().toISOString(),
"properties": {
"new_tier_name": payload.data.level.name,
"is_upgrade": payload.data.level.levelMoveUp,
"is_downgrade": payload.data.level.levelMoveDown
}
}
]
};
return brazecall;4
Trigger the Email Campaign
{% if event_properties.${is_upgrade} == true %}
<h1>Congratulations!</h1>
<p>You've leveled up to <strong>{{event_properties.${new_tier_name}}}</strong> status!</p>
<p>Check out your new perks in the app.</p>
{% elsif event_properties.${is_downgrade} == true %}
<p>Your tier status has changed to {{event_properties.${new_tier_name}}}.</p>
<p>Earn more points to get back to the top!</p>
{% endif %}Last updated
Was this helpful?

